aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-12-15 23:52:59 +1000
committerSteve Bennett <steveb@workware.net.au>2010-12-15 23:52:59 +1000
commit4f988c521cf54e2353ed4933fefcca4cb778bcdb (patch)
tree7fa2d653bf52ab8cec3aee5f6d63aed7cb6a4895 /jim.h
parent89250b07b814d1634c2ca8d83212cea582c1440a (diff)
downloadjimtcl-4f988c521cf54e2353ed4933fefcca4cb778bcdb.zip
jimtcl-4f988c521cf54e2353ed4933fefcca4cb778bcdb.tar.gz
jimtcl-4f988c521cf54e2353ed4933fefcca4cb778bcdb.tar.bz2
Fix an object sharing bug for arrays
Commands which modify variables in place such as append, lappend, incr and lset did not correctly account for modifying a shared array through an array element (dict sugar). Signed-off-by: Steve Bennett <steveb@workware.net.au>
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 320a200..0427bf4 100644
--- a/jim.h
+++ b/jim.h
@@ -147,6 +147,8 @@ extern "C" {
#define JIM_NONE 0 /* no flags set */
#define JIM_ERRMSG 1 /* set an error message in the interpreter. */
+#define JIM_UNSHARED 4 /* Flag to Jim_GetVariable() */
+
/* Flags for Jim_SubstObj() */
#define JIM_SUBST_NOVAR 1 /* don't perform variables substitutions */
#define JIM_SUBST_NOCMD 2 /* don't perform command substitutions */