diff options
author | dgp <dgp@noemail.net> | 2006-02-16 20:21:54 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2006-02-16 20:21:54 (GMT) |
commit | f14ddc612fbfe47b37e7c6d460039c4112cb7cf4 (patch) | |
tree | 3d05db661c9d68e583b5f4ee2bb5d305890088b6 /generic/tclIndexObj.c | |
parent | 96edd513db877e291da88fd31a1ac465b08ef786 (diff) | |
download | tcl-f14ddc612fbfe47b37e7c6d460039c4112cb7cf4.zip tcl-f14ddc612fbfe47b37e7c6d460039c4112cb7cf4.tar.gz tcl-f14ddc612fbfe47b37e7c6d460039c4112cb7cf4.tar.bz2 |
* generic/tclIndexObj.c: Disallow the "ambiguous" error message
* generic/indexObj.test: when TCL_EXACT matching is requested.
FossilOrigin-Name: 2a70498b7fc652f40a00726779ace576796e3608
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index 60d4931..bdfca15 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIndexObj.c,v 1.16.2.1 2004/01/13 09:45:30 dkf Exp $ + * RCS: @(#) $Id: tclIndexObj.c,v 1.16.2.2 2006/02/16 20:21:54 dgp Exp $ */ #include "tclInt.h" @@ -274,8 +274,8 @@ Tcl_GetIndexFromObjStruct(interp, objPtr, tablePtr, offset, msg, flags, TclNewObj(resultPtr); Tcl_SetObjResult(interp, resultPtr); - Tcl_AppendStringsToObj(resultPtr, - (numAbbrev > 1) ? "ambiguous " : "bad ", msg, " \"", + Tcl_AppendStringsToObj(resultPtr, (numAbbrev > 1) && + !(flags & TCL_EXACT) ? "ambiguous " : "bad ", msg, " \"", key, "\": must be ", STRING_AT(tablePtr,offset,0), (char*)NULL); for (entryPtr = NEXT_ENTRY(tablePtr, offset), count = 0; *entryPtr != NULL; |