diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-17 10:52:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-17 10:52:29 (GMT) |
commit | aa93fba41a6764dce6c1f918388efd0f46136ada (patch) | |
tree | 7d372bd18e21440cb339aeb273f6d0d605600dec /generic/tcl.h | |
parent | 721b319dcb44dc8af3446dbc91de321fd6a5b707 (diff) | |
parent | 6e51a643257c04e64fcd6684e45d068705d9587f (diff) | |
download | tcl-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.h | 3 |
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 /* *---------------------------------------------------------------------------- |