aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-01-24 10:56:26 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:40 +1000
commitf32ada62c0567ce439868b04f5de0ebe2a504e79 (patch)
tree88b9586976ab95ae8f5191146d92e41a4fe7f0f8 /jim.h
parent6ef810ae664dccd457fe1ed750f7d509b6f60878 (diff)
downloadjimtcl-f32ada62c0567ce439868b04f5de0ebe2a504e79.zip
jimtcl-f32ada62c0567ce439868b04f5de0ebe2a504e79.tar.gz
jimtcl-f32ada62c0567ce439868b04f5de0ebe2a504e79.tar.bz2
Improve expression support
Especially ternary operator and unary minus Still evaluates both sides of the ternary operator :-( Fix unary minus And add const in more places to avoid this mistake in future
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/jim.h b/jim.h
index 289d4ca..1f43b38 100644
--- a/jim.h
+++ b/jim.h
@@ -214,7 +214,7 @@ typedef struct Jim_HashTableType {
typedef struct Jim_HashTable {
Jim_HashEntry **table;
- Jim_HashTableType *type;
+ const Jim_HashTableType *type;
unsigned int size;
unsigned int sizemask;
unsigned int used;
@@ -285,7 +285,7 @@ typedef struct Jim_Obj {
int refCount; /* reference count */
char *bytes; /* string representation buffer. NULL = no string repr. */
int length; /* number of bytes in 'bytes', not including the numterm. */
- struct Jim_ObjType *typePtr; /* object type. */
+ const struct Jim_ObjType *typePtr; /* object type. */
/* Internal representation union */
union {
/* integer number type */
@@ -621,7 +621,7 @@ JIM_EXPORT void Jim_FreeStackElements(Jim_Stack *stack, void (*freeFunc)(void *p
/* hash table */
JIM_EXPORT int Jim_InitHashTable (Jim_HashTable *ht,
- Jim_HashTableType *type, void *privdata);
+ const Jim_HashTableType *type, void *privdata);
JIM_EXPORT int Jim_ExpandHashTable (Jim_HashTable *ht,
unsigned int size);
JIM_EXPORT int Jim_AddHashEntry (Jim_HashTable *ht, const void *key,