From: Donald G P. <dg...@ni...> - 2006-06-19 17:54:05
|
> It needs *one* change to Tcl: if the bytes ptr is *odd* when > releasing it, then do something special before actually doing the > ckfree. Can you clarify.... does this change happen only in Tcl, or in every extension that implements a Tcl_ObjType ? > So bytes is odd. The byte just before the string says where the > allocated memory really starts. And the first item in that memory is > the function to call before ckfree-ing the entire memory area. The whole point is to add another callback function when stringrep is freed? This hackery is preferred over just extending Tcl_ObjType? Why? | Don Porter Mathematical and Computational Sciences Division | | don...@ni... Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| |