aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2013-03-08 21:15:08 +0200
committerSteve Bennett <steveb@workware.net.au>2013-03-12 09:00:53 +1000
commitdd93bd7d001d53bb62802cf77ca499740d89217e (patch)
tree1f30d266fbb9bc227b7d3e524749f4eb2902c698 /jim.h
parent69f1b01e204f538283ef575691c35e76b99f25df (diff)
downloadjimtcl-dd93bd7d001d53bb62802cf77ca499740d89217e.zip
jimtcl-dd93bd7d001d53bb62802cf77ca499740d89217e.tar.gz
jimtcl-dd93bd7d001d53bb62802cf77ca499740d89217e.tar.bz2
Shuffle Jim_Obj to shrink it on 64bit (72 -> 64), removing holes
No perf difference measured using bench.tcl. Signed-off-by: Lauri Kasanen <cand@gmx.com>
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/jim.h b/jim.h
index 0f24a02..1c23c23 100644
--- a/jim.h
+++ b/jim.h
@@ -285,10 +285,10 @@ typedef struct Jim_HashTableIterator {
* The refcount of a freed object is always -1.
* ---------------------------------------------------------------------------*/
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 null term. */
const struct Jim_ObjType *typePtr; /* object type. */
+ int refCount; /* reference count */
+ int length; /* number of bytes in 'bytes', not including the null term. */
/* Internal representation union */
union {
/* integer number type */