Overview
| Comment: | Summary ------- 1) Broke the initialization of memory and finding the encodings file into seprarate routines. 2) Added wrapper hooks for locating files and initialization. 3) Modified the library path lookup algorithm. What I Changed -------------- 1) Modified generic/tclInt.h a) Added cache of the tclNativeExecutable name so the variable does not have be recomputed on subsequent calls to TclpFindExecutable. a) Added variable tclDefaultEncoding dir to store the path to the encoding files. b) Added prototype for TclpFindExecutable & TclpFindEncodings. 2) Modified generic/tclInitScript.h a) Added the TclSetPreInitScript proc and pointer to the script. 3) Modified generic/tclUtil.c a) Added initialization of the tclNativeExecutableName. 4) Modified generic/tclEvent.c a) Added boolean that indicates if the encodings have been initialized. b) Modified TclInitSubsystems so it only initializes "in-memory" subsystems, and not the encoding sub system. c) Added TclFindEncodigs procedure to initialize the encoding subsystem. d) Tcl_Finallize cleans up memory allocated for tclNativeExecutableName and tclDefaultEncodingDir. 5) Modified generic/tclEncoding.c a) Added intialization of the tclDefaultEncodingDir variable. b) Added two accessor functions, Tcl_GetDefaultEncodingDir and Tcl_SetDefaultEncodingDir. c) Made Tcl_FindExecutable platform independent, and moved to this file. 6) Modified unix/tclUnixFile.c and win/tclWinFile.c a) Added TclpFindExecutable(argv0) to compute a native string. c) Tcl_FindExecutable calls TclpFindExecutable to get the native string. d) Modified the TclpInitLibraryPath lookup algorithm (see below) 7) Modified unix/tclUnixInit.c and win/tclWinInit.c a) Added the call evaluate to the pre-init script b) Modified TclpInitLibraryPath to take a native path to the executable so it does not have to call Tcl_FindExecutable. c) On windows, the AppendRegistry routine was removed. 8) Modified unix/tclUnixTest.c a) Modified TestfindexecutableCmd to reset the cached value of tclNativeExecutable name. |
|---|---|
| Timelines: | family | ancestors | descendants | both | core-8-1-branch-old |
| Files: | files | file ages | folders |
| SHA1: |
f989579c4cb5d7766246d9ec360bbc33 |
| User & Date: | surles on 1999-03-12 23:29:11.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1999-03-12
| ||
| 23:47 | updated the man page for the Tcl_GetDefaultEncodingDir and Tcl_SetDefaultEncodingDir routines check-in: e3948f7aa8 user: surles tags: core-8-1-branch-old | |
| 23:29 | Summary ------- 1) Broke the initialization of memory and finding the encodings file into seprara... check-in: f989579c4c user: surles tags: core-8-1-branch-old | |
| 23:28 | added test for setting default encoding dir check-in: 400a8b27a9 user: surles tags: core-8-1-branch-old | |
Changes
Modified generic/tcl.decls
from [3c4769e02c]
to [da550e1c0c].
[diff]
Modified generic/tclDecls.h
from [7dda62a2e2]
to [edf343f201].
[diff]
Modified generic/tclEncoding.c
from [ac74b8977b]
to [0679936174].
[diff]
Modified generic/tclEvent.c
from [5e6d742fa0]
to [e35487b3f1].
[diff]
Modified generic/tclInitScript.h
from [1b4962e79f]
to [8522030c25].
[diff]
Modified generic/tclInt.h
from [3186d811cc]
to [11aafb30e3].
[diff]
Modified generic/tclIntDecls.h
from [02f6015a36]
to [24088914c2].
[diff]
Modified generic/tclIntPlatDecls.h
from [b2cf632970]
to [55c0d6552c].
[diff]
Modified generic/tclIntPlatStubs.c
from [56ea12d919]
to [7ac3cea404].
[diff]
Modified generic/tclIntStubs.c
from [5b8e640261]
to [95558e2efe].
[diff]
Modified generic/tclPlatDecls.h
from [510907ac2f]
to [3f6510b563].
[diff]
Modified generic/tclPlatStubs.c
from [17aef68a32]
to [e182451582].
[diff]
Modified generic/tclStubInit.c
from [fafa216eea]
to [7422785bba].
[diff]
Modified generic/tclStubs.c
from [ddad8f06cc]
to [8743189d6b].
[diff]
Modified generic/tclUtil.c
from [a0732071ec]
to [6f62e10753].
[diff]
Modified unix/tclUnixFile.c
from [108b64fe9a]
to [4c61df4ca1].
[diff]
Modified unix/tclUnixInit.c
from [56ea3d7b14]
to [da00e6b946].
[diff]
Modified unix/tclUnixTest.c
from [7d428ddb79]
to [3d650a07c8].
[diff]
Modified win/tclWinFile.c
from [967a24ab73]
to [97b3e2ee83].
[diff]
Modified win/tclWinInit.c
from [21bbe2441e]
to [a66f811c6f].
[diff]