1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/awele/files/patch-ab
1998-05-05 08:00:27 +00:00

63 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- tkAppInit.c.orig Fri Dec 8 16:35:38 1995
+++ tkAppInit.c Fri May 1 09:36:18 1998
@@ -9,12 +9,10 @@
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ *
+ * SCCS: @(#) tkAppInit.c 1.22 96/05/29 09:47:08
*/
-#ifndef lint
-static char sccsid[] = "@(#) tkAppInit.c 1.15 95/06/28 13:14:28";
-#endif /* not lint */
-
#include "tk.h"
extern void create_commands(Tcl_Interp *,Tk_Window);
@@ -27,6 +25,7 @@
extern int matherr();
int *tclDummyMathPtr = (int *) matherr;
+
/*
*----------------------------------------------------------------------
@@ -77,14 +76,13 @@
Tcl_AppInit(interp)
Tcl_Interp *interp; /* Interpreter for application. */
{
- Tk_Window main;
-
if (Tcl_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
if (Tk_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
+ Tcl_StaticPackage(interp, "Tk", Tk_Init, Tk_SafeInit);
/*
* Call the init procedures for included packages. Each call should
@@ -103,17 +101,14 @@
*/
create_commands(interp, main);
link_global_variables(interp, main);
-
+
/*
* Specify a user-specific startup file to invoke if the application
* is run interactively. Typically the startup file is "~/.apprc"
* where "app" is the name of the application. If this line is deleted
* then no user-specific startup file will be run under any conditions.
*/
-#ifdef DEFAULT_TCL_SCRIPT
- tcl_RcFileName = DEFAULT_TCL_SCRIPT ;
-#else
- tcl_RcFileName = "~/.wishrc";
-#endif
+
+ Tcl_SetVar(interp, "tcl_rcFileName", "~/.wishrc", TCL_GLOBAL_ONLY);
return TCL_OK;
}