aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/jim.h b/jim.h
index 2acd03a..77b96ca 100644
--- a/jim.h
+++ b/jim.h
@@ -478,6 +478,7 @@ typedef struct Jim_Cmd {
int inUse; /* Reference count */
Jim_CmdProc cmdProc; /* Not-NULL for a C command. */
void *privData; /* Only used for C commands. */
+ struct Jim_Cmd *prevCmd; /* If any, and this command created "local" */
Jim_DelCmdProc delProc; /* Called when the command is deleted if != NULL */
Jim_Obj *argListObjPtr;
Jim_Obj *bodyObjPtr;
@@ -521,6 +522,7 @@ typedef struct Jim_Interp {
callframe is created. This id is used for the
'ID' field contained in the Jim_CallFrame
structure. */
+ int local; /* If 'local' is in effect, newly defined procs keep a reference to the old defn */
Jim_Obj *liveList; /* Linked list of all the live objects. */
Jim_Obj *freeList; /* Linked list of all the unused objects. */
Jim_Obj *currentScriptObj; /* Script currently in execution. */