diff options
author | dgp <dgp@noemail.net> | 2003-04-03 16:46:04 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2003-04-03 16:46:04 (GMT) |
commit | aa0b8fcbff3713096f2de030472faea0e23fd3e2 (patch) | |
tree | fafb358419276b05930a559f2dcc6d3e63d24381 /generic/tclCompCmds.c | |
parent | 60f9399ba0caa48de9c82871fcde6bcdd7996156 (diff) | |
download | tcl-aa0b8fcbff3713096f2de030472faea0e23fd3e2.zip tcl-aa0b8fcbff3713096f2de030472faea0e23fd3e2.tar.gz tcl-aa0b8fcbff3713096f2de030472faea0e23fd3e2.tar.bz2 |
* generic/tclCompCmds.c (TclCompileReturnCmd): Now that [return]
compiles to INST_RETURN, it is safe to compile even outside a proc.
FossilOrigin-Name: feab5aa159619dd6f1b322b7ab80d307697a75ea
Diffstat (limited to 'generic/tclCompCmds.c')
-rw-r--r-- | generic/tclCompCmds.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c index 0596927..47b3b1a 100644 --- a/generic/tclCompCmds.c +++ b/generic/tclCompCmds.c @@ -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: tclCompCmds.c,v 1.44 2003/03/20 10:03:42 dkf Exp $ + * RCS: @(#) $Id: tclCompCmds.c,v 1.45 2003/04/03 16:46:43 dgp Exp $ */ #include "tclInt.h" @@ -2372,14 +2372,6 @@ TclCompileReturnCmd(interp, parsePtr, envPtr) Tcl_Token *varTokenPtr; int code; - /* - * If we're not in a procedure, don't compile. - */ - - if (envPtr->procPtr == NULL) { - return TCL_OUT_LINE_COMPILE; - } - switch (parsePtr->numWords) { case 1: { /* |