summaryrefslogtreecommitdiffstats
path: root/generic/tkMain.c
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/tkMain.c
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/tkMain.c')
-rw-r--r--generic/tkMain.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c
index 5dd5f40..2566674 100644
--- a/generic/tkMain.c
+++ b/generic/tkMain.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMain.c,v 1.32 2008/12/15 16:17:18 dgp Exp $
+ * RCS: @(#) $Id: tkMain.c,v 1.33 2010/07/16 22:06:05 nijtmans Exp $
*/
#include <ctype.h>
@@ -115,7 +115,6 @@ Tk_MainEx(
tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
- Tcl_FindExecutable(argv[0]);
tsdPtr->interp = interp;
Tcl_Preserve(interp);
@@ -239,7 +238,7 @@ Tk_MainEx(
* of length 0, (e.g. /dev/null, which is what Finder sets when double
* clicking Wish) then use the GUI console.
*/
-
+
if (!tsdPtr->tty) {
struct stat st;
@@ -452,7 +451,7 @@ Prompt(
*/
outChannel = Tcl_GetChannel(interp, "stdout", NULL);
- if (outChannel != (Tcl_Channel) NULL) {
+ if (outChannel != NULL) {
Tcl_WriteChars(outChannel, "% ", 2);
}
}
@@ -469,7 +468,7 @@ Prompt(
*/
errChannel = Tcl_GetChannel(interp, "stderr", NULL);
- if (errChannel != (Tcl_Channel) NULL) {
+ if (errChannel != NULL) {
Tcl_WriteObj(errChannel, Tcl_GetObjResult(interp));
Tcl_WriteChars(errChannel, "\n", 1);
}
@@ -477,7 +476,7 @@ Prompt(
}
}
outChannel = Tcl_GetChannel(interp, "stdout", NULL);
- if (outChannel != (Tcl_Channel) NULL) {
+ if (outChannel != NULL) {
Tcl_Flush(outChannel);
}
}