summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-05-31 19:58:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-05-31 19:58:45 (GMT)
commitcd7e1651b17ee97ef7188b3771fb7d8291a9449a (patch)
tree66de8db16f5e91e8891a0c300612975e1eb9d8a2 /generic/tclInt.h
parenta720a9f6e21c4c9afd7a4b125478dc9800db11c2 (diff)
parentba5939ea3bf47fc00db9172391b3d68e24539921 (diff)
downloadtcl-cd7e1651b17ee97ef7188b3771fb7d8291a9449a.zip
tcl-cd7e1651b17ee97ef7188b3771fb7d8291a9449a.tar.gz
tcl-cd7e1651b17ee97ef7188b3771fb7d8291a9449a.tar.bz2
Rewind from a refactoring that veered into the weeds.bug_3293874
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index d010284..cde46ac 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -2443,6 +2443,8 @@ typedef struct List {
#define LIST_MAX \
(1 + (int)(((size_t)UINT_MAX - sizeof(List))/sizeof(Tcl_Obj *)))
+#define LIST_SIZE(numElems) \
+ (unsigned)(sizeof(List) + (((numElems) - 1) * sizeof(Tcl_Obj *)))
/*
* Macro used to get the elements of a list object.