summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-12-06 19:34:57 (GMT)
committerhobbs <hobbs>2007-12-06 19:34:57 (GMT)
commitc705b6f05a1fc295aba71e392c7e958f136436c6 (patch)
treea41398d67470bd4597c9d9b9858cda93c322b66d
parentc805eb186280c216c7f727254ec8e555a30c0b62 (diff)
downloadtcl-c705b6f05a1fc295aba71e392c7e958f136436c6.zip
tcl-c705b6f05a1fc295aba71e392c7e958f136436c6.tar.gz
tcl-c705b6f05a1fc295aba71e392c7e958f136436c6.tar.bz2
(TclMatchIsTrivial): simplify TclMatchIsTrivial to remove ] check
-rw-r--r--ChangeLog1
-rw-r--r--generic/tclInt.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fd6e9f8..4789e1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2007-12-06 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclInt.h: add TclGetChannelFromObj decl
+ (TclMatchIsTrivial): simplify TclMatchIsTrivial to remove ] check.
2007-12-06 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
diff --git a/generic/tclInt.h b/generic/tclInt.h
index cc57a09..c507ed3 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInt.h,v 1.355 2007/12/06 19:23:40 hobbs Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.356 2007/12/06 19:34:58 hobbs Exp $
*/
#ifndef _TCLINT
@@ -3554,7 +3554,7 @@ MODULE_SCOPE void TclBNInitBignumFromWideUInt(mp_int *bignum,
*----------------------------------------------------------------
*/
-#define TclMatchIsTrivial(pattern) strpbrk((pattern), "*[]]?\\") == NULL
+#define TclMatchIsTrivial(pattern) strpbrk((pattern), "*[?\\") == NULL
/*
*----------------------------------------------------------------