X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=hbytes%2Fparse.c;h=266de4b6739ab96534539906450f7b0f3af264d2;hp=a3635142bb3dfe186da16b1051a2a513693b4b0d;hb=da1c2c3cbb87a600f19e250f93ef9fa4f89844fc;hpb=82f88c53ddb84e42c770c23feb9bb0ee18341188 diff --git a/hbytes/parse.c b/hbytes/parse.c index a363514..266de4b 100644 --- a/hbytes/parse.c +++ b/hbytes/parse.c @@ -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;