summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorstanton <stanton>1999-05-14 02:04:05 (GMT)
committerstanton <stanton>1999-05-14 02:04:05 (GMT)
commitd384504a71f7fc403210d9574f3e57af920036d1 (patch)
treee8614f6f61e872efdf42a0967e70b044627b162b /generic/tclRegexp.c
parent070799ec788b2bba9d102dd2b79cba97c6904885 (diff)
downloadtcl-d384504a71f7fc403210d9574f3e57af920036d1.zip
tcl-d384504a71f7fc403210d9574f3e57af920036d1.tar.gz
tcl-d384504a71f7fc403210d9574f3e57af920036d1.tar.bz2
increased per-thread regexp cache to 30
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r--generic/tclRegexp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c
index b435968..3ae0c16 100644
--- a/generic/tclRegexp.c
+++ b/generic/tclRegexp.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: tclRegexp.c,v 1.3 1999/05/13 01:50:32 stanton Exp $
+ * RCS: @(#) $Id: tclRegexp.c,v 1.4 1999/05/14 02:04:05 stanton Exp $
*/
#include "tclInt.h"
@@ -65,7 +65,7 @@
* regular expressions.
*/
-#define NUM_REGEXPS 5
+#define NUM_REGEXPS 30
typedef struct ThreadSpecificData {
int initialized; /* Set to 1 when the module is initialized. */
@@ -141,7 +141,7 @@ Tcl_RegExpCompile(interp, string)
char *string; /* String for which to produce
* compiled regular expression. */
{
- return (Tcl_RegExp) CompileRegexp(interp, string, strlen(string),
+ return (Tcl_RegExp) CompileRegexp(interp, string, (int) strlen(string),
REG_ADVANCED);
}