summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2011-05-31 19:58:45 (GMT)
committerdgp <dgp@noemail.net>2011-05-31 19:58:45 (GMT)
commit1a146366032829ae99c63d07329416b927768f34 (patch)
tree66de8db16f5e91e8891a0c300612975e1eb9d8a2 /generic/tclInt.h
parent49f033153bafda3372c838648b25c2dd7974233b (diff)
parent74a8254eb62926a16d8405e59fd7848d728fbc11 (diff)
downloadtcl-1a146366032829ae99c63d07329416b927768f34.zip
tcl-1a146366032829ae99c63d07329416b927768f34.tar.gz
tcl-1a146366032829ae99c63d07329416b927768f34.tar.bz2
Rewind from a refactoring that veered into the weeds.
FossilOrigin-Name: 1d247886dbc19d9a7b4d1135f8c21b97c7c3c8cc
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.