diff options
author | Steve Bennett <steveb@workware.net.au> | 2022-06-27 17:54:02 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-07-25 22:45:35 +1000 |
commit | 8e7fb137ff0dddda57390a2161a20f532a7fa6ca (patch) | |
tree | f096e58d5a51847e9d6e9230164fb90df101d713 /jim.c | |
parent | d1c3e1dfd55a046013a2718bf492ab6607209b99 (diff) | |
download | jimtcl-8e7fb137ff0dddda57390a2161a20f532a7fa6ca.zip jimtcl-8e7fb137ff0dddda57390a2161a20f532a7fa6ca.tar.gz jimtcl-8e7fb137ff0dddda57390a2161a20f532a7fa6ca.tar.bz2 |
jim.c: minor comment fixups
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r-- | jim.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -3830,7 +3830,7 @@ static void JimDecrCmdRefCount(Jim_Interp *interp, Jim_Cmd *cmdPtr) /* Variables HashTable Type. * - * Keys are dynamically allocated strings, Values are Jim_Var structures. + * Keys are Jim_Obj. Values are Jim_Var. */ static void JimVariablesHTValDestructor(void *interp, void *val) { @@ -4036,7 +4036,7 @@ static void JimCreateCommand(Jim_Interp *interp, Jim_Obj *nameObjPtr, Jim_Cmd *c /* Otherwise simply replace any existing command */ /* Note that it is not necessary to increment the 'proc epoch' because any - * existing command that is replace will be held as a negative cache entry + * existing command that is replaced will be held as a negative cache entry * until the next time the proc epoch is incremented. */ Jim_ReplaceHashEntry(&interp->commands, nameObjPtr, cmd); @@ -4558,12 +4558,6 @@ static Jim_Var *JimCreateVariable(Jim_Interp *interp, Jim_Obj *nameObjPtr, Jim_O return var; } -/* For now that's dummy. Variables lookup should be optimized - * in many ways, with caching of lookups, and possibly with - * a table of pre-allocated vars in every CallFrame for local vars. - * All the caching should also have an 'epoch' mechanism similar - * to the one used by Tcl for procedures lookup caching. */ - /** * Set the variable nameObjPtr to value valObjptr. */ |