diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-24 11:10:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-24 11:10:30 (GMT) |
commit | c355f9a6cf73375f2fca0d17fb3d7ca852ca26a9 (patch) | |
tree | b597df55815546c607433635f6bab5e54bb2147f /generic | |
parent | a6fb6b32ca5735916db769b4030d4184ecbdfbbc (diff) | |
parent | 9c5e4541411287c33ae6727b22ec18fec6cd04fa (diff) | |
download | tcl-c355f9a6cf73375f2fca0d17fb3d7ca852ca26a9.zip tcl-c355f9a6cf73375f2fca0d17fb3d7ca852ca26a9.tar.gz tcl-c355f9a6cf73375f2fca0d17fb3d7ca852ca26a9.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCompile.h | 6 | ||||
-rw-r--r-- | generic/tclInt.h | 30 |
2 files changed, 18 insertions, 18 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h index cd3866d..05af346 100644 --- a/generic/tclCompile.h +++ b/generic/tclCompile.h @@ -427,7 +427,7 @@ typedef struct ByteCode { * procs are specific to an interpreter so the * code emitted will depend on the * interpreter. */ - TCL_HASH_TYPE compileEpoch; /* Value of iPtr->compileEpoch when this + size_t compileEpoch; /* Value of iPtr->compileEpoch when this * ByteCode was compiled. Used to invalidate * code when, e.g., commands with compile * procs are redefined. */ @@ -435,11 +435,11 @@ typedef struct ByteCode { * compiled. If the code is executed if a * different namespace, it must be * recompiled. */ - TCL_HASH_TYPE nsEpoch; /* Value of nsPtr->resolverEpoch when this + size_t nsEpoch; /* Value of nsPtr->resolverEpoch when this * ByteCode was compiled. Used to invalidate * code when new namespace resolution rules * are put into effect. */ - TCL_HASH_TYPE refCount; /* Reference count: set 1 when created plus 1 + size_t refCount; /* Reference count: set 1 when created plus 1 * for each execution of the code currently * active. This structure can be freed when * refCount becomes zero. */ diff --git a/generic/tclInt.h b/generic/tclInt.h index 3b979d8..3ac2240 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -282,7 +282,7 @@ typedef struct Namespace { * frames for this namespace that are on the * Tcl call stack. The namespace won't be * freed until activationCount becomes zero. */ - TCL_HASH_TYPE refCount; /* Count of references by namespaceName + size_t refCount; /* Count of references by namespaceName * objects. The namespace can't be freed until * refCount becomes zero. */ Tcl_HashTable cmdTable; /* Contains all the commands currently @@ -307,12 +307,12 @@ typedef struct Namespace { * registered using "namespace export". */ size_t maxExportPatterns; /* Number of export patterns for which space * is currently allocated. */ - TCL_HASH_TYPE cmdRefEpoch; /* Incremented if a newly added command + size_t cmdRefEpoch; /* Incremented if a newly added command * shadows a command for which this namespace * has already cached a Command* pointer; this * causes all its cached Command* pointers to * be invalidated. */ - TCL_HASH_TYPE resolverEpoch; /* Incremented whenever (a) the name + size_t resolverEpoch; /* Incremented whenever (a) the name * resolution rules change for this namespace * or (b) a newly added command shadows a * command that is compiled to bytecodes. This @@ -339,7 +339,7 @@ typedef struct Namespace { * LookupCompiledLocal to resolve variable * references within the namespace at compile * time. */ - TCL_HASH_TYPE exportLookupEpoch; /* Incremented whenever a command is added to + size_t exportLookupEpoch; /* Incremented whenever a command is added to * a namespace, removed from a namespace or * the exports of a namespace are changed. * Allows TIP#112-driven command lists to be @@ -439,7 +439,7 @@ typedef struct EnsembleConfig { * if the command has been deleted (or never * existed; the global namespace never has an * ensemble command.) */ - TCL_HASH_TYPE epoch; /* The epoch at which this ensemble's table of + size_t epoch; /* The epoch at which this ensemble's table of * exported commands is valid. */ char **subcommandArrayPtr; /* Array of ensemble subcommand names. At all * consistent points, this will have the same @@ -552,7 +552,7 @@ typedef struct CommandTrace { struct CommandTrace *nextPtr; /* Next in list of traces associated with a * particular command. */ - TCL_HASH_TYPE refCount; /* Used to ensure this structure is not + size_t refCount; /* Used to ensure this structure is not * deleted too early. Keeps track of how many * pieces of code have a pointer to this * structure. */ @@ -625,7 +625,7 @@ typedef struct Var { typedef struct VarInHash { Var var; - TCL_HASH_TYPE refCount; /* Counts number of active uses of this + size_t refCount; /* Counts number of active uses of this * variable: 1 for the entry in the hash * table, 1 for each additional variable whose * linkPtr points here, 1 for each nested @@ -967,7 +967,7 @@ typedef struct CompiledLocal { typedef struct Proc { struct Interp *iPtr; /* Interpreter for which this command is * defined. */ - TCL_HASH_TYPE refCount; /* Reference count: 1 if still present in + size_t refCount; /* Reference count: 1 if still present in * command table plus 1 for each call to the * procedure that is currently active. This * structure can be freed when refCount @@ -1084,7 +1084,7 @@ typedef struct AssocData { */ typedef struct LocalCache { - TCL_HASH_TYPE refCount; + size_t refCount; size_t numVars; Tcl_Obj *varName0; } LocalCache; @@ -1250,7 +1250,7 @@ typedef struct CmdFrame { typedef struct CFWord { CmdFrame *framePtr; /* CmdFrame to access. */ size_t word; /* Index of the word in the command. */ - TCL_HASH_TYPE refCount; /* Number of times the word is on the + size_t refCount; /* Number of times the word is on the * stack. */ } CFWord; @@ -1660,12 +1660,12 @@ typedef struct Command { * recreated). */ Namespace *nsPtr; /* Points to the namespace containing this * command. */ - TCL_HASH_TYPE refCount; /* 1 if in command hashtable plus 1 for each + size_t refCount; /* 1 if in command hashtable plus 1 for each * reference from a CmdName Tcl object * representing a command's name in a ByteCode * instruction sequence. This structure can be * freed when refCount becomes zero. */ - TCL_HASH_TYPE cmdEpoch; /* Incremented to invalidate any references + size_t cmdEpoch; /* Incremented to invalidate any references * that point to this command when it is * renamed, deleted, hidden, or exposed. */ CompileProc *compileProc; /* Procedure called to compile command. NULL @@ -1893,7 +1893,7 @@ typedef struct Interp { * compiled by the interpreter. Indexed by the * string representations of literals. Used to * avoid creating duplicate objects. */ - TCL_HASH_TYPE compileEpoch; /* Holds the current "compilation epoch" for + size_t compileEpoch; /* Holds the current "compilation epoch" for * this interpreter. This is incremented to * invalidate existing ByteCodes when, e.g., a * command with a compile procedure is @@ -2375,7 +2375,7 @@ typedef enum TclEolTranslation { */ typedef struct List { - TCL_HASH_TYPE refCount; + size_t refCount; size_t maxElemCount; /* Total number of element array slots. */ size_t elemCount; /* Current number of list elements. */ int canonicalFlag; /* Set if the string representation was @@ -2599,7 +2599,7 @@ typedef void (TclInitProcessGlobalValueProc)(char **valuePtr, TCL_HASH_TYPE *len */ typedef struct ProcessGlobalValue { - TCL_HASH_TYPE epoch; /* Epoch counter to detect changes in the + size_t epoch; /* Epoch counter to detect changes in the * global value. */ TCL_HASH_TYPE numBytes; /* Length of the global string. */ char *value; /* The global string value. */ |