summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/tclWinInit.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 6f7425c..f64fa89 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -72,6 +72,15 @@ static char* processors[NUMPROCESSORS] = {
#include "tclInitScript.h"
+/*
+ * A pointer to a string that holds an alternate initialization script to the
+ * built-in initialization script defined in the file "generic/tclInitScript.h".
+ * The Tcl_Init() routine will evaluate this script if it contains a non-NULL
+ * value.
+ */
+
+char * tclAlternateInitScript = NULL;
+
/*
*----------------------------------------------------------------------
@@ -237,8 +246,10 @@ int
Tcl_Init(interp)
Tcl_Interp *interp; /* Interpreter to initialize. */
{
- return Tcl_Eval(interp, initScript);
-
+ if (tclAlternateInitScript != NULL) {
+ Tcl_Eval(interp, tclAlternateInitScript);
+ }
+ return(Tcl_Eval(interp, initScript));
}
/*