diff options
author | redman <redman> | 1999-06-28 23:49:29 (GMT) |
---|---|---|
committer | redman <redman> | 1999-06-28 23:49:29 (GMT) |
commit | 71008cf5a42b9cda92ef5051322cb11dee863e91 (patch) | |
tree | 97d30bfa6cb6e1eb503e59a1639c8fccd6e6d486 /doc | |
parent | c258b333c62e72fc2f07289988d0989a8742f6df (diff) | |
download | tcl-71008cf5a42b9cda92ef5051322cb11dee863e91.zip tcl-71008cf5a42b9cda92ef5051322cb11dee863e91.tar.gz tcl-71008cf5a42b9cda92ef5051322cb11dee863e91.tar.bz2 |
Applied patch from Peter Hardie (with modifications) to fix
Tcl_GetIndexFromObj when the key is "". Added test cases and
doc note.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/GetIndex.3 | 6 |
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 |