chiark / gitweb /
Fix memory and type management bugs.
[chiark-tcl.git] / base / chiark-tcl.h
index ac19c8f9cd941f2ac1aa95fcd2a7daee442e601a..c9975f2adea212c8fd1602dcb0c6a9bd2e73bbf4 100644 (file)
@@ -15,7 +15,7 @@
  *
  *  hbytes range VALUE START SIZE                => substring (or error)
  *  hbytes overwrite VAR START VALUE
- *  hbytes trimleft VALUE                        removes any leading 0 octets
+ *  hbytes trimleft VA                        removes any leading 0 octets
  *  hbytes repeat VALUE COUNT                    => COUNT copies of VALUE
  *
  *  hbytes clockincrement VAR INTEGER      adds INTEGER to VAR mod 256^|VAR|
@@ -175,6 +175,7 @@ void obj_updatestr_string(Tcl_Obj *o, const char *str);
 typedef struct {
   HBytes_Value *hb;
   Tcl_Obj *obj, *var;
+  int copied;
 } HBytes_Var;
 
 void fini_hbv(Tcl_Interp *ip, int rc, HBytes_Var *agg);