diff options
author | Steve Bennett <steveb@workware.net.au> | 2013-12-20 08:34:28 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2013-12-21 01:04:39 +1000 |
commit | dd766b8642398684da5bf70f4f346301bc9da01c (patch) | |
tree | 090a30d0d6f4649a98531b9e378a46cc41d5d33d /jim.h | |
parent | 32fc07012bd8f734e3f7c05fe2a17123c6be2baf (diff) | |
download | jimtcl-dd766b8642398684da5bf70f4f346301bc9da01c.zip jimtcl-dd766b8642398684da5bf70f4f346301bc9da01c.tar.gz jimtcl-dd766b8642398684da5bf70f4f346301bc9da01c.tar.bz2 |
tailcall should resolve command in current namespace
Currently tailcall resolves the command in the parent
namespace.
This also fixes the deletion of [local] commands
such that they are always correctly deleted.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.h')
-rw-r--r-- | jim.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -523,6 +523,7 @@ typedef struct Jim_Interp { int (*signal_set_result)(struct Jim_Interp *interp, jim_wide sigmask); /* Set a result for the sigmask */ Jim_CallFrame *framePtr; /* Pointer to the current call frame */ Jim_CallFrame *topFramePtr; /* toplevel/global frame pointer. */ + Jim_Obj *resolveNsObj; /* If not NULL, resolve the next command in this namespace - for tailcall */ struct Jim_HashTable commands; /* Commands hash table */ unsigned long procEpoch; /* Incremented every time the result of procedures names lookup caching |