summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1999-05-14 02:04:05 (GMT)
committerstanton <stanton@noemail.net>1999-05-14 02:04:05 (GMT)
commitb88f0cc94ee70b18d3c41b78ef7eb58ae7d0b691 (patch)
treee8614f6f61e872efdf42a0967e70b044627b162b /generic
parent7814e961391b7a95b614d6be66e7af34396e0357 (diff)
downloadtcl-b88f0cc94ee70b18d3c41b78ef7eb58ae7d0b691.zip
tcl-b88f0cc94ee70b18d3c41b78ef7eb58ae7d0b691.tar.gz
tcl-b88f0cc94ee70b18d3c41b78ef7eb58ae7d0b691.tar.bz2
increased per-thread regexp cache to 30
FossilOrigin-Name: 00c4feaf42c881a370f5a098d56cef12cad95b0c
Diffstat (limited to 'generic')
-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);
}