chiark / gitweb /
hbytes compiles
[chiark-tcl.git] / hbytes / parse.c
index a3635142bb3dfe186da16b1051a2a513693b4b0d..266de4b6739ab96534539906450f7b0f3af264d2 100644 (file)
@@ -3,6 +3,13 @@
 
 #include "chiark_tcl_hbytes.h"
 
+int cht_pat_hbv(Tcl_Interp *ip, Tcl_Obj *var, HBytes_Var *agg) {
+  int rc;
+  rc= cht_pat_somethingv(ip,var,&agg->sth,&cht_hbytes_type);
+  if (rc) return rc;
+  agg->hb= OBJ_HBYTES(agg->sth.obj);
+  return TCL_OK;
+}
 int cht_pat_hb(Tcl_Interp *ip, Tcl_Obj *obj, HBytes_Value *val) {
   int rc;
   rc= Tcl_ConvertToType(ip,obj,&cht_hbytes_type);  if (rc) return rc;