summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-01-29 02:40:49 (GMT)
committerhobbs <hobbs>2002-01-29 02:40:49 (GMT)
commitd97d504c5e8a9f2ffe16cd98a47a9136667ec481 (patch)
treebbb29c76790c831a91991f75b9f62cee439c22b1 /generic/tclBasic.c
parent9ecae5f2626934f33e0a3b70c1089d1ae517de31 (diff)
downloadtcl-d97d504c5e8a9f2ffe16cd98a47a9136667ec481.zip
tcl-d97d504c5e8a9f2ffe16cd98a47a9136667ec481.tar.gz
tcl-d97d504c5e8a9f2ffe16cd98a47a9136667ec481.tar.bz2
* tests/regexpComp.test (new):
* generic/tclInt.h: * generic/tclBasic.c: added TclCompileRegexpCmd entry * generic/tclCompCmds.c (TclCompileStringCmd): corrected to return TCL_OUT_LINE_COMPILE instead of TCL_ERROR for parsing errors, so it only throws the error for runtime compile, in case the user modifies 'string'. (TclCompileRegexpCmd): first try at a byte-compiled regexp command. It handles static strings and ^$ bounded static strings. (TclCompileAppendCmd): made TclPushVarName call always use TCL_CREATE_VAR as numWords is always > 2 at that point.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 3ebdfb0..133228a 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -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: tclBasic.c,v 1.44 2002/01/25 21:36:09 dgp Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.45 2002/01/29 02:40:49 hobbs Exp $
*/
#include "tclInt.h"
@@ -139,7 +139,7 @@ static CmdInfo builtInCmds[] = {
{"proc", (Tcl_CmdProc *) NULL, Tcl_ProcObjCmd,
(CompileProc *) NULL, 1},
{"regexp", (Tcl_CmdProc *) NULL, Tcl_RegexpObjCmd,
- (CompileProc *) NULL, 1},
+ TclCompileRegexpCmd, 1},
{"regsub", (Tcl_CmdProc *) NULL, Tcl_RegsubObjCmd,
(CompileProc *) NULL, 1},
{"rename", (Tcl_CmdProc *) NULL, Tcl_RenameObjCmd,