summaryrefslogtreecommitdiffstats
path: root/doc/GetIndex.3
diff options
context:
space:
mode:
authorredman <redman@noemail.net>1999-06-28 23:49:29 (GMT)
committerredman <redman@noemail.net>1999-06-28 23:49:29 (GMT)
commit64cc0908e2b42c4fc474166207e724f82598cfab (patch)
tree97d30bfa6cb6e1eb503e59a1639c8fccd6e6d486 /doc/GetIndex.3
parenta559cfc3f337922e167d797f1d4ba0117178f0d5 (diff)
downloadtcl-64cc0908e2b42c4fc474166207e724f82598cfab.zip
tcl-64cc0908e2b42c4fc474166207e724f82598cfab.tar.gz
tcl-64cc0908e2b42c4fc474166207e724f82598cfab.tar.bz2
Applied patch from Peter Hardie (with modifications) to fix
Tcl_GetIndexFromObj when the key is "". Added test cases and doc note. FossilOrigin-Name: 4fe945f8856dd33e3452d3873bdb9dcefb3ec8dd
Diffstat (limited to 'doc/GetIndex.3')
-rw-r--r--doc/GetIndex.36
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/GetIndex.3 b/doc/GetIndex.3
index 342069a..8ba28ba 100644
--- a/doc/GetIndex.3
+++ b/doc/GetIndex.3
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: GetIndex.3,v 1.3 1999/04/16 00:46:31 stanton Exp $
+'\" RCS: @(#) $Id: GetIndex.3,v 1.4 1999/06/28 23:49:31 redman Exp $
'\"
.so man.macros
.TH Tcl_GetIndexFromObj 3 8.1 Tcl "Tcl Library Procedures"
@@ -81,7 +81,9 @@ arguments (e.g. during a reinvocation of a Tcl command), it returns
the matching index immediately without having to redo the lookup
operation. Note: \fBTcl_GetIndexFromObj\fR assumes that the entries
in \fItablePtr\fR are static: they must not change between
-invocations.
+invocations. If the value of \fIobjPtr\fR is the empty string,
+\fTcl_GetIndexFromObj\fR will treat it as a non-matching value
+and return TCL_ERROR.
.VS
.PP
\fBTcl_GetIndexFromObjStruct\fR works just like