summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-07-16 22:06:04 (GMT)
committernijtmans <nijtmans>2010-07-16 22:06:04 (GMT)
commita5b009796383e0a829c96ed6ac24c3b035f55fde (patch)
tree1ab293900e82d01e1060a7bf524bd8ae1fd61bc7 /generic/tk.h
parent914fd8473c892c8067540984d46d755984fee66a (diff)
downloadtk-a5b009796383e0a829c96ed6ac24c3b035f55fde.zip
tk-a5b009796383e0a829c96ed6ac24c3b035f55fde.tar.gz
tk-a5b009796383e0a829c96ed6ac24c3b035f55fde.tar.bz2
[Tcl Bug 3029891] Functions that don't belong in the stub table (Tk part, not really removed from the stub table, just disabled)
[Bug 3027438] Tk_Main calls Tcl_CreateInterp before Tcl_FindExecutable
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tk.h b/generic/tk.h
index 10db9a7..8e3e144 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk.h,v 1.135 2010/06/19 16:18:41 jenglish Exp $
+ * RCS: @(#) $Id: tk.h,v 1.136 2010/07/16 22:06:05 nijtmans Exp $
*/
#ifndef _TK
@@ -1478,8 +1478,8 @@ typedef struct Tk_ElementSpec {
#define Tk_Release Tcl_Release
/* Removed Tk_Main, use macro instead */
-#define Tk_Main(argc, argv, proc) \
- Tk_MainEx(argc, argv, proc, Tcl_CreateInterp())
+#define Tk_Main(argc, argv, proc) Tk_MainEx(argc, argv, proc, \
+ (Tcl_FindExecutable(argv[0]), (Tcl_CreateInterp)()))
const char * Tk_InitStubs(Tcl_Interp *interp, const char *version,
int exact);