summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorstanton <stanton>1999-05-13 01:50:31 (GMT)
committerstanton <stanton>1999-05-13 01:50:31 (GMT)
commit9525d9226567d4bcd1134ce0376e04dbe531bf6f (patch)
tree2ed4e906d3b8d7624d3d173ae41938257d15e24f /generic/tclInt.h
parent1fcc7feac69c4ccee7495f17ab908e53e09c4e0e (diff)
downloadtcl-9525d9226567d4bcd1134ce0376e04dbe531bf6f.zip
tcl-9525d9226567d4bcd1134ce0376e04dbe531bf6f.tar.gz
tcl-9525d9226567d4bcd1134ce0376e04dbe531bf6f.tar.bz2
* tests/regexp.test:
* generic/tclInt.h: * generic/tclBasic.c: * generic/tclRegexp.h: * generic/tclRegexp.c: Replaced the per-interpreter regexp cache with a per-thread cache. Changed the Regexp object to take advantage of this extra cache. Added a reference count to the TclRegexp type so regexps can be shared by multiple objects. Removed the per-interp regexp cache from the interpreter. Now regexps can be used with no need for an interpreter. [Bug: 1063]
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 39032cf..68614bc 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -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: tclInt.h,v 1.28 1999/04/22 22:57:07 stanton Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.29 1999/05/13 01:50:32 stanton Exp $
*/
#ifndef _TCLINT
@@ -1183,26 +1183,6 @@ typedef struct Interp {
* stored at partialResult. */
/*
- * A cache of compiled regular expressions. See Tcl_RegExpCompile
- * in tclUtil.c for details. THIS CACHE IS OBSOLETE and is only
- * retained for backward compatibility with Tcl_RegExpCompile.
- * New code should use the object interface so the Tcl_Obj caches
- * the compiled expression.
- */
-
-#define NUM_REGEXPS 5
- char *patterns[NUM_REGEXPS];/* Strings corresponding to compiled
- * regular expression patterns. NULL
- * means that this slot isn't used.
- * Malloc-ed. */
- int patLengths[NUM_REGEXPS];/* Number of non-null characters in
- * corresponding entry in patterns.
- * -1 means entry isn't used. */
- struct TclRegexp *regexps[NUM_REGEXPS];
- /* Compiled forms of above strings. Also
- * malloc-ed, or NULL if not in use yet. */
-
- /*
* Information about packages. Used only in tclPkg.c.
*/