Posted to tcl by GPS at Tue Oct 02 21:33:44 GMT 2007view raw
- #include <tcl.h>
- #include <stdlib.h>
- #ifdef FIX
- #undef Tcl_DecrRefCount
- #define Tcl_DecrRefCount(objPtr) \
- do { if (--(objPtr)->refCount <= 0) TclFreeObj(objPtr); } while(0)
- #endif
- int main () {
- Tcl_Obj *o;
- o = Tcl_NewObj ();
- if (o)
- Tcl_DecrRefCount (o);
- return EXIT_SUCCESS;
- }