summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclBasic.c10
2 files changed, 8 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 7f3374f..1817cf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-12-07 Miguel Sofer <msofer@users.sf.net>
+
+ * 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.
+
2009-12-07 Don Porter <dgp@users.sourceforge.net>
* generic/tclStrToD.c: Correct conditional compile directives to
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);