aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2013-12-20 08:34:28 +1000
committerSteve Bennett <steveb@workware.net.au>2013-12-21 01:04:39 +1000
commitdd766b8642398684da5bf70f4f346301bc9da01c (patch)
tree090a30d0d6f4649a98531b9e378a46cc41d5d33d /jim.h
parent32fc07012bd8f734e3f7c05fe2a17123c6be2baf (diff)
downloadjimtcl-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/jim.h b/jim.h
index 2e5cfba..9f4813d 100644
--- a/jim.h
+++ b/jim.h
@@ -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