|
From: Andreas L. <av...@lo...> - 2008-11-17 14:12:41
|
On Mon, Nov 17, 2008 at 12:16:13PM +0100, Jan Nijtmans wrote: > 2008/11/17 Andreas Leitgeb <av...@lo...>: > > typedef void (Tcl_FreeProcRO) _ANSI_ARGS_((const char *blockPtr)); > > and TCL_STATIC would be eventually be typed as Tcl_FreeProcRO, so > > it could be passed to the const char* taking Tcl_SetResultRO(). > A free of a const pointer? That looks wrong to me. It's not all that bad, as it would be only used for those freeProcs that do not really free() the pointer, such as e.g. TCL_STATIC, (which isn't even a function in the first place). Since TCL_STATIC and TCL_VOLATILE seem to cover almost all the usages, anyway, my original idea of having to change exactly those to using some Tcl_SetResultRO(...) seems indeed not so good now. > Yes, it's a lot of work. Thanks for your reaction. I do not understand all these things that I seem to have triggered, (especially in your second reply) only so far as that they have little to do with what I suggested. If they lead to a better approach, I'm nevertheless happy :-) |