summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
authordas <das>2008-04-16 14:51:28 (GMT)
committerdas <das>2008-04-16 14:51:28 (GMT)
commit54bfce14793fed20c259085043af7e9ab0579aef (patch)
tree7bc936a8c902ad26432c19fd773a273fbfdf5276 /generic/tkWindow.c
parentf4a2a378897fa69d2d7f86f96f00c8282d5a34b5 (diff)
downloadtk-54bfce14793fed20c259085043af7e9ab0579aef.zip
tk-54bfce14793fed20c259085043af7e9ab0579aef.tar.gz
tk-54bfce14793fed20c259085043af7e9ab0579aef.tar.bz2
* generic/tkStubInit.c: make stubs tables static const
* generic/tkWindow.c (Initialize): and export only a module-scope pointer to to the main stubs table (for package init). [Patch 1938497]
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index 854bb82..c73b950 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.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: tkWindow.c,v 1.93 2008/04/07 23:14:36 hobbs Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.94 2008/04/16 14:51:29 das Exp $
*/
#include "tkInt.h"
@@ -2912,7 +2912,7 @@ Tk_SafeInit(
return Initialize(interp);
}
-extern TkStubs tkStubs;
+MODULE_SCOPE const TkStubs * const tkConstStubsPtr;
/*
*----------------------------------------------------------------------
@@ -3190,7 +3190,7 @@ Initialize(
*/
code = Tcl_PkgProvideEx(interp, "Tk", TK_PATCH_LEVEL,
- (ClientData) &tkStubs);
+ (ClientData) tkConstStubsPtr);
if (code != TCL_OK) {
goto done;
}