diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2009-12-07 19:03:14 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2009-12-07 19:03:14 (GMT) |
commit | 60fb745f06ad64d3e8042da7ab3a837f52eafce6 (patch) | |
tree | 681c8ed51d4e0b7b882f92bd133b15aa6f17edbf /generic | |
parent | 16a57bb45fbcb61e87c998d5dd81fb42452bc6f9 (diff) | |
download | tcl-60fb745f06ad64d3e8042da7ab3a837f52eafce6.zip tcl-60fb745f06ad64d3e8042da7ab3a837f52eafce6.tar.gz tcl-60fb745f06ad64d3e8042da7ab3a837f52eafce6.tar.bz2 |
* generic/tclBasic.c: arrange for [tailcall] to be created with
the other builtins: was being created in a separate call, leftover
from pre-tip days.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclBasic.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index b201af9..ae6469f 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -16,7 +16,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.415 2009/12/07 16:33:01 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.416 2009/12/07 19:03:15 msofer Exp $ */ #include "tclInt.h" @@ -216,6 +216,7 @@ static const CmdInfo builtInCmds[] = { {"split", Tcl_SplitObjCmd, NULL, NULL, 1}, {"subst", Tcl_SubstObjCmd, TclCompileSubstCmd, TclNRSubstObjCmd, 1}, {"switch", Tcl_SwitchObjCmd, TclCompileSwitchCmd, TclNRSwitchObjCmd, 1}, + {"tailcall", NULL, NULL, TclNRTailcallObjCmd, 1}, {"throw", Tcl_ThrowObjCmd, NULL, NULL, 1}, {"trace", Tcl_TraceObjCmd, NULL, NULL, 1}, {"try", Tcl_TryObjCmd, NULL, TclNRTryObjCmd, 1}, @@ -792,13 +793,6 @@ Tcl_CreateInterp(void) Tcl_CreateObjCommand(interp, "::tcl::unsupported::representation", Tcl_RepresentationCmd, NULL, NULL); - /* - * Create the 'tailcall' command - */ - - Tcl_NRCreateCommand(interp, "tailcall", NULL, TclNRTailcallObjCmd, - NULL, NULL); - Tcl_NRCreateCommand(interp, "::tcl::unsupported::yieldTo", NULL, TclNRYieldToObjCmd, NULL, NULL); |