diff options
author | hobbs <hobbs> | 2000-11-03 20:01:16 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-11-03 20:01:16 (GMT) |
commit | 610fb498bcd71cf41d9b3019e07d0bb509ff3337 (patch) | |
tree | a9fc261395fa8551ebe3c77255d9d7fd365fe14c /generic | |
parent | c3064b1f4544c841d840a76bcebdb93c4caf23f7 (diff) | |
download | tcl-610fb498bcd71cf41d9b3019e07d0bb509ff3337.zip tcl-610fb498bcd71cf41d9b3019e07d0bb509ff3337.tar.gz tcl-610fb498bcd71cf41d9b3019e07d0bb509ff3337.tar.bz2 |
moved Tcl_GetThreadData call after Tcl_FindExecutable
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclMain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c index 5089a93..20ed566 100644 --- a/generic/tclMain.c +++ b/generic/tclMain.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMain.c,v 1.8 2000/11/03 18:46:12 hobbs Exp $ + * RCS: @(#) $Id: tclMain.c,v 1.9 2000/11/03 20:01:16 hobbs Exp $ */ #include "tcl.h" @@ -152,10 +152,10 @@ Tcl_Main(argc, argv, appInitProc) Tcl_DString argString; ThreadSpecificData *tsdPtr; + Tcl_FindExecutable(argv[0]); + tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - - Tcl_FindExecutable(argv[0]); tsdPtr->interp = interp = Tcl_CreateInterp(); #ifdef TCL_MEM_DEBUG Tcl_InitMemory(interp); |