summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-09-13 20:46:12 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-09-13 20:46:12 (GMT)
commitf073bc7484740398be58c99c4313c4c6202954f7 (patch)
treeb1715d32648272faa4c32f157f1815e5d8733c85 /generic/tcl.h
parent278837f261adb88e6a802f3ebaf63e232c12e77f (diff)
parente89503a925f86a4914df078203ed227305110bbd (diff)
downloadtcl-f073bc7484740398be58c99c4313c4c6202954f7.zip
tcl-f073bc7484740398be58c99c4313c4c6202954f7.tar.gz
tcl-f073bc7484740398be58c99c4313c4c6202954f7.tar.bz2
Merge implementation of TIP #585 (Promote the INDEX_TEMP_TABLE flag of Tcl_GetIndexFromObj*() to the public interface) after positive vote from the TCT. Fix conflict due to Tcl_GetIndexFromObj() having been replaced by a macro in [4d8ee0f939].
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 1da4df8..c69ea9d 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -818,11 +818,14 @@ typedef struct Tcl_DString {
#define TCL_DONT_QUOTE_HASH 8
/*
- * Flag that may be passed to Tcl_GetIndexFromObj to force it to disallow
- * abbreviated strings.
+ * Flags that may be passed to Tcl_GetIndexFromObj.
+ * TCL_EXACT disallows abbreviated strings.
+ * TCL_INDEX_TEMP_TABLE disallows caching of lookups. A possible use case is
+ * a table that will not live long enough to make it worthwhile.
*/
-#define TCL_EXACT 1
+#define TCL_EXACT 1
+#define TCL_INDEX_TEMP_TABLE 2
/*
*----------------------------------------------------------------------------