diff options
author | hobbs <hobbs> | 2007-12-07 21:24:40 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-12-07 21:24:40 (GMT) |
commit | 2904158a955ce9de68ba2adf6f4d208ac0d4d1fb (patch) | |
tree | ff0702e66499acf947274d981f176c4d49fabc04 /generic/tclExecute.c | |
parent | aeb2a84dc4e3d3c70aa56a9e7e9f23d5f6f7f4b8 (diff) | |
download | tcl-2904158a955ce9de68ba2adf6f4d208ac0d4d1fb.zip tcl-2904158a955ce9de68ba2adf6f4d208ac0d4d1fb.tar.gz tcl-2904158a955ce9de68ba2adf6f4d208ac0d4d1fb.tar.bz2 |
* generic/tclExecute.c (TclExecuteByteCode INST_REGEXP):
* generic/tclCompCmds.c (TclCompileRegexpCmd): Pass correct RE
compile flags at compile time, and use TCL_REG_NOSUB.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index e537b4b..c8ec537 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.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: tclExecute.c,v 1.354 2007/12/07 21:08:43 hobbs Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.355 2007/12/07 21:24:41 hobbs Exp $ */ #include "tclInt.h" @@ -4231,19 +4231,15 @@ TclExecuteByteCode( } case INST_REGEXP: { - int nocase, match; + int cflags, match; Tcl_Obj *valuePtr, *value2Ptr; Tcl_RegExp regExpr; - nocase = TclGetInt1AtPtr(pc+1); + cflags = TclGetInt1AtPtr(pc+1); /* RE compile flages like NOCASE */ valuePtr = OBJ_AT_TOS; /* String */ value2Ptr = OBJ_UNDER_TOS; /* Pattern */ - /* - * Use TCL_REG_NOSUB as we come here without capture vars - */ - regExpr = Tcl_GetRegExpFromObj(interp, value2Ptr, - TCL_REG_ADVANCED|TCL_REG_NOSUB|(nocase ? TCL_REG_NOCASE : 0)); + regExpr = Tcl_GetRegExpFromObj(interp, value2Ptr, cflags); if (regExpr == NULL) { match = -1; } else { |