summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-25 12:22:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-25 12:22:16 (GMT)
commitd95abe6b6fe069f55ce27900c99fec5949d63a15 (patch)
treec261490c8b413208fd28174c52e9044de53d3853 /generic/tclBasic.c
parentf73959c2df224df88d79415e16dfab56b8756008 (diff)
downloadtcl-d95abe6b6fe069f55ce27900c99fec5949d63a15.zip
tcl-d95abe6b6fe069f55ce27900c99fec5949d63a15.tar.gz
tcl-d95abe6b6fe069f55ce27900c99fec5949d63a15.tar.bz2
If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 37dd699..b4d0a7b 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -203,7 +203,7 @@ static const CmdInfo builtInCmds[] = {
{"append", Tcl_AppendObjCmd, TclCompileAppendCmd, NULL, CMD_IS_SAFE},
{"apply", Tcl_ApplyObjCmd, NULL, TclNRApplyObjCmd, CMD_IS_SAFE},
{"break", Tcl_BreakObjCmd, TclCompileBreakCmd, NULL, CMD_IS_SAFE},
-#ifndef EXCLUDE_OBSOLETE_COMMANDS
+#ifndef TCL_NO_DEPRECATED
{"case", Tcl_CaseObjCmd, NULL, NULL, CMD_IS_SAFE},
#endif
{"catch", Tcl_CatchObjCmd, TclCompileCatchCmd, TclNRCatchObjCmd, CMD_IS_SAFE},