summaryrefslogtreecommitdiffstats
path: root/win/winMain.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-22 09:30:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-22 09:30:20 (GMT)
commitf77016087cb69115bed89d614535c7f86d085ac1 (patch)
treed258ed112e5fe99ca61ac350ee668f96b9492ca0 /win/winMain.c
parent3c8dfaecb7e69e6952cc56d7dab1c51154daba39 (diff)
downloadtk-f77016087cb69115bed89d614535c7f86d085ac1.zip
tk-f77016087cb69115bed89d614535c7f86d085ac1.tar.gz
tk-f77016087cb69115bed89d614535c7f86d085ac1.tar.bz2
Make sure the stubbed variants of Tcl_ObjSetVar2/Tcl_NewStringObj are never used in winMain.c/tkAppInit.c
Diffstat (limited to 'win/winMain.c')
-rw-r--r--win/winMain.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/win/winMain.c b/win/winMain.c
index d245038..a7308cf 100644
--- a/win/winMain.c
+++ b/win/winMain.c
@@ -63,6 +63,10 @@ MODULE_SCOPE int TK_LOCAL_APPINIT(Tcl_Interp *interp);
#ifdef TK_LOCAL_MAIN_HOOK
MODULE_SCOPE int TK_LOCAL_MAIN_HOOK(int *argc, TCHAR ***argv);
#endif
+
+/* Make sure the stubbed variants of those are never used. */
+#undef Tcl_ObjSetVar2
+#undef Tcl_NewStringObj
/*
*----------------------------------------------------------------------
@@ -227,7 +231,7 @@ Tcl_AppInit(
* specific startup file will be run under any conditions.
*/
- (Tcl_ObjSetVar2)(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL,
+ Tcl_ObjSetVar2(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL,
Tcl_NewStringObj("~/wishrc.tcl", -1), TCL_GLOBAL_ONLY);
return TCL_OK;
}