diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-05 21:59:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-05 21:59:34 (GMT) |
commit | 230f0601cc8f96e8bcad9092df8c38b0d7ce3255 (patch) | |
tree | db8d7492e0b0cea4804d3fa0e34df9cfdf746244 /generic/tclInt.h | |
parent | ff741e8b29f173130bc6e8919eafa763738bffd0 (diff) | |
parent | 618c49af4d299c9f0d776e604a1c81dd186b3b2d (diff) | |
download | tcl-230f0601cc8f96e8bcad9092df8c38b0d7ce3255.zip tcl-230f0601cc8f96e8bcad9092df8c38b0d7ce3255.tar.gz tcl-230f0601cc8f96e8bcad9092df8c38b0d7ce3255.tar.bz2 |
Merge core-8-branch
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 0eecfb3..fc86c21 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -1691,18 +1691,18 @@ typedef struct Command { /* * Flag bits for commands. * - * CMD_DYING - If 1 the command is in the process of + * CMD_IS_DELETED - Means that the command is in the process of * being deleted (its deleteProc is currently * executing). Other attempts to delete the * command should be ignored. - * CMD_TRACE_ACTIVE - If 1 the trace processing is currently + * CMD_TRACE_ACTIVE - 1 means that trace processing is currently * underway for a rename/delete change. See the * two flags below for which is currently being * processed. - * CMD_HAS_EXEC_TRACES - If 1 means that this command has at least one + * CMD_HAS_EXEC_TRACES - 1 means that this command has at least one * execution trace (as opposed to simple * delete/rename traces) in its tracePtr list. - * CMD_COMPILES_EXPANDED - If 1 this command has a compiler that + * CMD_COMPILES_EXPANDED - 1 means that this command has a compiler that * can handle expansion (provided it is not the * first word). * TCL_TRACE_RENAME - A rename trace is in progress. Further @@ -1712,7 +1712,7 @@ typedef struct Command { * (these last two flags are defined in tcl.h) */ -#define CMD_DYING 0x01 +#define CMD_IS_DELETED 0x01 #define CMD_TRACE_ACTIVE 0x02 #define CMD_HAS_EXEC_TRACES 0x04 #define CMD_COMPILES_EXPANDED 0x08 @@ -4910,30 +4910,10 @@ MODULE_SCOPE Tcl_PackageInitProc Procbodytest_SafeInit; * the internal stubs, but the core can use the macro instead. */ -#define TclCleanupCommandMacro(cmdPtr) \ - do { \ - if ((cmdPtr)->refCount-- <= 1) { \ - Tcl_Free(cmdPtr); \ - } \ - } while (0) - - -/* - * inside this routine increment refCount first incase cmdPtr is replacing itself - */ -#define TclRoutineAssign(location, cmdPtr) \ - do { \ - (cmdPtr)->refCount++; \ - if ((location) != NULL \ - && (location--) <= 1) { \ - Tcl_Free(((location))); \ - } \ - (location) = (cmdPtr); \ - } while (0) - - -#define TclRoutineHasName(cmdPtr) \ - ((cmdPtr)->hPtr != NULL) +#define TclCleanupCommandMacro(cmdPtr) \ + if ((cmdPtr)->refCount-- <= 1) { \ + ckfree(cmdPtr);\ + } /* *---------------------------------------------------------------- |