summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-17 10:52:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-17 10:52:29 (GMT)
commitaa93fba41a6764dce6c1f918388efd0f46136ada (patch)
tree7d372bd18e21440cb339aeb273f6d0d605600dec /generic/tcl.h
parent721b319dcb44dc8af3446dbc91de321fd6a5b707 (diff)
parent6e51a643257c04e64fcd6684e45d068705d9587f (diff)
downloadtcl-aa93fba41a6764dce6c1f918388efd0f46136ada.zip
tcl-aa93fba41a6764dce6c1f918388efd0f46136ada.tar.gz
tcl-aa93fba41a6764dce6c1f918388efd0f46136ada.tar.bz2
Implement TIP #613: New INDEX_NULL_OK flag for Tcl_GetIndexFromObj*()
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 346b79c..b82cf0a 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -979,10 +979,13 @@ typedef struct Tcl_DString {
* 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.
+ * TCL_INDEX_NULL_OK allows the empty string or NULL to return TCL_OK.
+ * The returned value will be -1;
*/
#define TCL_EXACT 1
#define TCL_INDEX_TEMP_TABLE 2
+#define TCL_INDEX_NULL_OK 4
/*
*----------------------------------------------------------------------------