diff options
| author | dgp@users.sourceforge.net <dgp> | 2005-05-05 18:37:43 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2005-05-05 18:37:43 (GMT) |
| commit | 852bb784109fdc8296849d5fe6e8d8e3fa83d74c (patch) | |
| tree | 528333d487c2d5ed865f278d50536ea98959741c /generic/tclUtil.c | |
| parent | a31685fcbd88531bfb8efc84a9b4e23a8f3732b0 (diff) | |
| download | tcl-852bb784109fdc8296849d5fe6e8d8e3fa83d74c.zip tcl-852bb784109fdc8296849d5fe6e8d8e3fa83d74c.tar.gz tcl-852bb784109fdc8296849d5fe6e8d8e3fa83d74c.tar.bz2 | |
* generic/tclInt.decls: Converted TclMatchIsTrivial to a macro.
* generic/tclInt.h:
* generic/tclUtil.c:
* generic/tclIntDecls.h: `make genstubs`
* generic/tclStubInit.c:
* generic/tclBasic.c: Added callers of TclMatchIsTrivial where
* generic/tclCmdIL.c: a search can be done more efficiently
* generic/tclCompCmds.c:when it is recognized that a pattern match
* generic/tclDictObj.c: is really an exact match. [Patch 1076088]
* generic/tclIO.c:
* generic/tclNamesp.c:
* generic/tclVar.c:
Diffstat (limited to 'generic/tclUtil.c')
| -rw-r--r-- | generic/tclUtil.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index c658988..869169a 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUtil.c,v 1.57 2005/05/03 18:08:21 dgp Exp $ + * RCS: @(#) $Id: tclUtil.c,v 1.58 2005/05/05 18:38:06 dgp Exp $ */ #include "tclInt.h" @@ -1416,43 +1416,6 @@ Tcl_StringCaseMatch(str, pattern, nocase) /* *---------------------------------------------------------------------- * - * TclMatchIsTrivial -- - * - * Test whether a particular glob pattern is a trivial pattern. - * (i.e. where matching is the same as equality testing). - * - * Results: - * A boolean indicating whether the pattern is free of all of the - * glob special chars. - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ - -int -TclMatchIsTrivial(pattern) - CONST char *pattern; -{ - CONST char *p = pattern; - - while (1) { - switch (*p++) { - case '\0': - return 1; - case '*': - case '?': - case '[': - case '\\': - return 0; - } - } -} - -/* - *---------------------------------------------------------------------- - * * Tcl_DStringInit -- * * Initializes a dynamic string, discarding any previous contents |
