diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-04-08 10:42:42 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-04-08 10:42:42 (GMT) |
commit | 4d9d47506acb1ced701406b6a0236b8da33448c8 (patch) | |
tree | b618a012ff8b77b7f795772f3464d19054eb525c /generic/tclCmdMZ.c | |
parent | 596f07e4bfed21c35b29972c3be0428e9cd51b5c (diff) | |
download | tcl-4d9d47506acb1ced701406b6a0236b8da33448c8.zip tcl-4d9d47506acb1ced701406b6a0236b8da33448c8.tar.gz tcl-4d9d47506acb1ced701406b6a0236b8da33448c8.tar.bz2 |
Improved [switch] compilation.
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r-- | generic/tclCmdMZ.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 03a4ccb..e85e0ea 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdMZ.c,v 1.115 2004/10/21 15:19:46 dgp Exp $ + * RCS: @(#) $Id: tclCmdMZ.c,v 1.116 2005/04/08 10:42:51 dkf Exp $ */ #include "tclInt.h" @@ -2506,6 +2506,11 @@ Tcl_SwitchObjCmd(dummy, interp, objc, objv) Tcl_Obj *stringObj, *indexVarObj, *matchVarObj; Tcl_Obj *CONST *savedObjv = objv; Tcl_RegExp regExpr = NULL; + /* + * If you add options that make -e and -g not unique prefixes of + * -exact or -glob, you *must* fix TclCompileSwitchCmd's option + * parser as well. + */ static CONST char *options[] = { "-exact", "-glob", "-indexvar", "-matchvar", "-regexp", "--", NULL |