diff options
author | nijtmans <nijtmans> | 2010-02-05 20:53:12 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-02-05 20:53:12 (GMT) |
commit | 9f80e538be5be980c7e52789ff2162b08db46823 (patch) | |
tree | a7fd50364b89ff5d71caa2334171f35231b0dd1c /generic/tclBasic.c | |
parent | 66b1b7dda9580db59b81a9fe27b553015e5a65bd (diff) | |
download | tcl-9f80e538be5be980c7e52789ff2162b08db46823.zip tcl-9f80e538be5be980c7e52789ff2162b08db46823.tar.gz tcl-9f80e538be5be980c7e52789ff2162b08db46823.tar.bz2 |
Follow-up to earlier commit today:
Eliminate the need for an extra Stubs Pointer
for adressing a static stub table: Just change
the exported table from static to MODULE_SCOPE.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 08414c8..c2a8363 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.440 2010/02/02 16:12:00 dkf Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.441 2010/02/05 20:53:12 nijtmans Exp $ */ #include "tclInt.h" @@ -167,7 +167,7 @@ static Tcl_NRPostProc TEOV_RestoreVarFrame; static Tcl_NRPostProc TEOV_RunLeaveTraces; static Tcl_NRPostProc YieldToCallback; -MODULE_SCOPE const TclStubs *const tclConstStubsPtr; +MODULE_SCOPE const TclStubs tclConstStubs; /* * The following structure define the commands in the Tcl core. @@ -677,7 +677,7 @@ Tcl_CreateInterp(void) * Initialise the stub table pointer. */ - iPtr->stubTable = tclConstStubsPtr; + iPtr->stubTable = &tclConstStubs; /* * Initialize the ensemble error message rewriting support. @@ -906,7 +906,7 @@ Tcl_CreateInterp(void) */ Tcl_PkgProvideEx(interp, "Tcl", TCL_PATCH_LEVEL, - (ClientData) tclConstStubsPtr); + (ClientData) &tclConstStubs); if (TclTommath_Init(interp) != TCL_OK) { Tcl_Panic(Tcl_GetString(Tcl_GetObjResult(interp))); |