aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authoroharboe <oharboe>2009-08-16 11:37:03 +0000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:01:11 +1000
commitdea8dba726a2f11170efe7958fd5af8de1ae0c59 (patch)
tree3801968de15d607b2d7cb770684136ddbb0a90a0 /jim.h
parentc9020ce22a2f30a4b9edec824c60ce6ccc82e000 (diff)
downloadjimtcl-dea8dba726a2f11170efe7958fd5af8de1ae0c59.zip
jimtcl-dea8dba726a2f11170efe7958fd5af8de1ae0c59.tar.gz
jimtcl-dea8dba726a2f11170efe7958fd5af8de1ae0c59.tar.bz2
Fix crash in subst
If an object is used in subst, then source, a crash will result Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/jim.h b/jim.h
index c2b939c..0df4396 100644
--- a/jim.h
+++ b/jim.h
@@ -3,7 +3,7 @@
* Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
* Copyright 2005 Clemens Hintze <c.hintze@gmx.net>
* Copyright 2005 patthoyts - Pat Thoyts <patthoyts@users.sf.net>
- * Copyright 2008 oharboe - Øyvind Harboe - oyvind.harboe@zylin.com
+ * Copyright 2008 oharboe - �yvind Harboe - oyvind.harboe@zylin.com
* Copyright 2008 Andrew Lunn <andrew@lunn.ch>
* Copyright 2008 Duane Ellis <openocd@duaneellis.com>
* Copyright 2008 Uwe Klein <uklein@klein-messgeraete.de>
@@ -156,6 +156,7 @@ extern "C" {
#define JIM_SUBST_NOVAR 1 /* don't perform variables substitutions */
#define JIM_SUBST_NOCMD 2 /* don't perform command substitutions */
#define JIM_SUBST_NOESC 4 /* don't perform escapes substitutions */
+#define JIM_SUBST_FLAG 128 /* flag to indicate that this is a real substition object */
/* Unused arguments generate annoying warnings... */
#define JIM_NOTUSED(V) ((void) V)