summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-07-13 19:06:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-07-13 19:06:22 (GMT)
commitab2a78be642be26075e2998347d71359a6b3c500 (patch)
tree30640bd9d81f1c2ebb578d5aae95f27240b26854 /generic/tclInt.h
parent800148e0621ab1e28457aa915d37dd5c36c1ba77 (diff)
downloadtcl-ab2a78be642be26075e2998347d71359a6b3c500.zip
tcl-ab2a78be642be26075e2998347d71359a6b3c500.tar.gz
tcl-ab2a78be642be26075e2998347d71359a6b3c500.tar.bz2
New private flag value INDEX_TEMP_TABLE.
Used to signal to Tcl_GetIndexFromObj*() routines that the table in which lookups are done has a fleeting existence. Thus there is no value in caching any results, since the cache can never be useful. Improvement over existing hackery where cache is stored and then freed to avoid bogus results. Likely candidate to eventually push to the public interface.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 33476ed..4ecac7d 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -2548,6 +2548,15 @@ typedef struct TclFileAttrProcs {
} TclFileAttrProcs;
/*
+ * Private flag value which controls Tcl_GetIndexFromObj*() routines
+ * to instruct them not to cache lookups because the table will not
+ * live long enough to make it worthwhile. Must not clash with public
+ * flag value TCL_EXACT.
+ */
+
+#define INDEX_TEMP_TABLE 2
+
+/*
* Opaque handle used in pipeline routines to encapsulate platform-dependent
* state.
*/