summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 3448512]: clock scan "1958-01-01" fails only in debug compilationjan.nijtmans2012-04-111-1/+1
|\
| * [Bug 3448512]: clock scan "1958-01-01" fails only in debug compilationjan.nijtmans2012-04-111-1/+1
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ \ | |/ | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * * generic/tclBasic.c:Miguel Sofer2005-10-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclLink.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclScan.c: * generic/tclTest.c: * generic/tclVar.c: * mac/tclMacInit.c: * unix/tclUnixInit.c: * win/tclWinInit.c: Insure that the core never calls TclPtrSetVar, Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new value. It is not possible to handle error returns correctly in that case [Bug 1334947], one has the choice of leaking the object in some cases, or else risk crashing in some others.
| * * generic/tclInt.h:hobbs2004-03-291-3/+5
| | | | | | | | | | | | | | | | | | * generic/tclEncoding.c (TclFindEncodings, Tcl_FindExecutable): * mac/tclMacInit.c (TclpInitLibraryPath): Correct handling of UTF * unix/tclUnixInit.c (TclpInitLibraryPath): data that is actually * win/tclWinFile.c (TclpFindExecutable): "clean", allowing the * win/tclWinInit.c (TclpInitLibraryPath): loading of Tcl from paths that contain multi-byte chars on Windows [Bug 920667]
| * * win/tclWinInit.c (TclpSetInitialEncodings): recognize WIN32_CEhobbs2004-03-211-5/+8
| | | | | | | | as a unicode (WCHAR) platform.
| * * win/tclWinInit.c (AppendEnvironment):mdejong2004-02-201-4/+23
| | | | | | | | | | | | | | | | Use the tail component of the passed in lib path instead of just blindly using lib+4. That worked when lib was "lib/..." but fails for other values. Thanks go to Patrick Samson for pointing this out.
| * * tests/unixInit.test (unixInit-2.10): re-enabled.dgp2003-11-101-3/+22
| | | | | | | | | | | | * unix/tclUnixInit.c (TclpInitLibraryPath): Alternative fix * win/tclWinInit.c (TclpInitLibraryPath): for [Bug 832657] that should not run afoul of startup constraints.
| * * win/tclWinInit.c: recognize amd64 and ia32_on_win64 cpus andhobbs2003-08-061-5/+12
| | | | | | | | Windows CE platform.
* | fix gcc warning: dereferencing pointer 'oemId' does break strict-aliasing rulesnijtmans2010-11-191-7/+8
| |
* | Handle the GetUserName API call appropriately for wide/narrow versions. [Bug ↵patthoyts2009-07-011-5/+8
| | | | | | | | 2806622]
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Spelling mistake in comment!dkf2007-11-191-2/+2
| |
* | More type-pun warning squelchesdkf2007-05-051-3/+3
| |
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-4/+4
| |
* | fix to compile problemsvincentdarley2006-04-051-3/+3
| |
* | * win/tclWinInit.c: More careful calls to Tcl_DStringSetLength()dgp2006-04-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinSock.c: to avoid creating invalid DString states. * win/tclWinDde.c: Bump to version 1.3.2. [RFE 1366195] * library/dde/pkgIndex.tcl: * library/reg/pkgIndex.tcl: Bump to registry 1.1.6 * win/tclWinReg.c: * win/configure.in: Bump package version numbers. * win/configure: autoconf 2.59
* | TIP#258 IMPLEMENTATIONdgp2006-02-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Encoding.3: New subcommand [encoding dirs]. * doc/encoding.n: New routine Tcl_GetEncodingNameFromEnvironment. * generic/tcl.decls: Made public: * generic/tclBasic.c: TclGetEncodingFromObj * generic/tclCmdAH.c: -> Tcl_GetEncodingFromObj * generic/tclEncoding.c:TclGetEncodingSearchPath * generic/tclInt.decls: -> Tcl_GetEncodingSearchPath * generic/tclInt.h: TclSetEncodingSearchPath * generic/tclTest.c: -> Tcl_SetEncodingSearchPath * library/init.tcl: Removed commands: * tests/cmdAH.test: [tcl::unsupported::EncodingDirs] * tests/encoding.test: [testencoding path] (Tcltest) * unix/tclUnixInit.c: [Patch 1413934]. * win/tclWinInit.c: * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c:
* | ANSIfydkf2005-11-041-26/+26
| |
* | Getting more systematic about styledkf2005-07-241-92/+104
| |
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
| |
* | * generic/tclEncoding.c: Different fix for [Bug 1077005].dgp2004-12-041-6/+11
| | | | | | | | | | | | | | | | | | * generic/tclEvent.c: Broke apart TclpSetInitialEncodings() on * generic/tclInt.h: Windows into TclpSetInterfaces(), that is * unix/tclUnixInit.c: fundamentally essential, and the initialization * win/tclWinInit.c: of the system encoding, which is not. Made the TclpSetInterfaces call part of TclInitSubsystems so it cannot be overlooked.
* | Patch 976520 reworks several of the details involved withdgp2004-11-301-271/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | startup/initialization of the Tcl library, focused on the activities of Tcl_FindExecutable(). * generic/tclIO.c: Removed bogus claim in comment that encoding "iso8859-1" is "built-in" to Tcl. * generic/tclInt.h: Created a new struct ProcessGlobalValue, * generic/tclUtil.c: routines Tcl(Get|Set)ProcessGlobalValue, and function type TclInitProcessGlobalValueProc. Together, these take care of the housekeeping for "values" (things that can be held in a Tcl_Obj) that are global across a whole process. That is, they are shared among multiple threads, and epoch and mutex protection must govern the validity of cached copies maintained in each thread. * generic/tclNotify.c: Modified TclInitNotifier() to tolerate being called multiple times in the same thread. * generic/tclEvent.c: Dropped the unused argv0 argument to TclInitSubsystems(). Removed machinery to unsure only one TclInitNotifier() call per thread, now that that is safe. Converted Tcl(Get|Set)LibraryPath to use a ProcessGlobalValue, and moved them to tclEncoding.c. * generic/tclBasic.c: Updated caller. * generic/tclInt.h: TclpFindExecutable now returns void. * unix/tclUnixFile.c: * win/tclWinFile.c: * win/tclWinPipe.c: * generic/tclEncoding.c: Built new encoding search initialization on a foundation of ProcessGlobalValues, exposing new routines Tcl(Get|Set)EncodingSearchPath. A cache of a map from encoding name to directory pathname keeps track of where encodings are available for loading. Tcl_FindExecutable greatly simplified into just three function calls. The "library path" is now misnamed, as its only remaining purpose is as a foundation for the default encoding search path. * generic/tclInterp.c: Inlined the initScript that is evaluated by Tcl_Init(). Added verification after initScript evaluation that Tcl can find its installed *.enc files, and that it has initialized [encoding system] in agreement with what the environment expects. [tclInit] no longer driven by the value of $::tcl_libPath; it largely constructs its own search path now, rather than attempt to share one with the encoding system. * unix/tclUnixInit.c: TclpSetInitialEncodings factored so that a new * win/tclWinInit.c: routine TclpGetEncodingNameFromEnvironment can reveal that Tcl thinks the [encoding system] should be, even when an incomplete encoding search path, or a missing *.enc file won't allow that initialization to succeed. TclpInitLibraryPath reworked as an initializer of a ProcessGlobalValue. * unix/tclUnixTest.c: Update implementations of [testfindexecutable], [testgetdefenc], and [testsetdefenc]. * tests/unixInit.test: Corrected tests to operate properly even when a value of TCL_LIBRARY is required to find encodings. * generic/tclInt.decls: New internal stubs: TclGetEncodingSearchPath, TclSetEncodingSearchPath, TclpGetEncodingNameFromEnvironment. These are candidates for public exposure by future TIPs. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclTest.c: Updated [testencoding] to use * tests/encoding.test: Tcl(Get|Set)EncodingSearchPath. Updated tests.
* | Fixed compilation error in tclWinInit.c on VC++ --enable-symbolsKevin B Kenny2004-11-241-3/+2
| |
* | * unix/tclUnixInit.c (TclpInitLibraryPath): Purged dead code thatdgp2004-11-221-109/+3
| | | | | | | | | | | | * win/tclWinInit.c (TclpInitLibraryPath): used to extend the "library path". Search path construction for init.tcl is now done within the [tclInit] proc.
* | Silenced a compiler warning about a type mismatch in AppendEnvironmentKevin B Kenny2004-07-081-2/+2
| |
* | Whitespace fixingdkf2004-07-081-38/+37
| |
* | Fix warningdkf2004-07-011-2/+2
| |
* | * win/tclWinInit.c: Corrected reference counting flaw indgp2004-06-291-2/+2
| | | | | | | | recent changes. Thanks to Pat Thoyts. [Bug 981893].
* | Fix tclWinInit.c for KBK, adding comments as I go. :^)dkf2004-06-181-12/+27
| |
* | Relaxed panic condition on overwrite of default library path to acceptdgp2004-06-171-6/+15
| | | | | | | | | | double right of the same value. Needed to support Tk_Main's call order (Tcl_CreateInterp before Tcl_FindExecutable).
* | Remove debugging panicdgp2004-06-171-2/+5
| |
* | Added missing incr ref count. D'oh!dgp2004-06-171-1/+2
| |
* | Better panic message for diagnosis.dgp2004-06-171-1/+2
| |
* | silence compiler warningdgp2004-06-171-2/+2
| |
* | more compiler fixesdgp2004-06-171-4/+2
| |
* | correct compile errorsdgp2004-06-171-3/+4
| |
* | * win/tclWinInit.c: Inform [tclInit] about the default librarydgp2004-06-171-4/+133
| | | | | | | | | | | | directory via the ::tclDefaultLibrary variable. This should correct a problem with my 2004-06-11 commit. Better solutions still in the works. Thanks to Joe Mistachkin for pointing out the breakage.
* | * unix/tclUnixInit.c: The routines Tcl_Init() and TclSourceRCFile()dgp2004-06-111-109/+1
| | | | | | | | | | | | | | | | | | | | * win/tclWinInit.c: had identical implementations for both win and * generic/tclInterp.c: unix. Moved to a single generic implementation. * generic/tclMain.c: * library/init.tcl: * generic/tclInitScript.h (removed): * unix/Makefile.in: * win/tcl.dsp:
* | * unix/tclUnixInit.c (TclpInitLibraryPath): Disabled addition ofdgp2004-06-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinInit.c (TclpInitLibraryPath): relative-to-executable directories to the library search path. A first step in reform of Tcl's startup process. ***POTENTIAL INCOMPATIBILITY*** Attempts to directly run ./tclsh or ./tcltest out of a build directory will either fail, or will make use of an installed script library in preference to the one in the source tree. Use `make shell` or `make runtest` instead. * tests/unixInit.test: Modified tests to suit above changes.
* | * win/tclWinInit.c (TclpSetInitialEncodings): note that WIN32_CEhobbs2004-04-071-6/+11
| | | | | | | | | | | | | | | | | | | | is also a unicode platform. * generic/tclEncoding.c (TclFindEncodings, Tcl_FindExecutable): * generic/tclInt.h: Correct handling of UTF * unix/tclUnixInit.c (TclpInitLibraryPath): data that is actually * win/tclWinFile.c (TclpFindExecutable): "clean", allowing the * win/tclWinInit.c (TclpInitLibraryPath): loading of Tcl from paths that contain multi-byte chars on Windows [Bug 920667]
* | * win/tclWinInit.c (AppendEnvironment):mdejong2004-02-121-4/+23
| | | | | | | | | | | | | | | | Use the tail component of the passed in lib path instead of just blindly using lib+4. That worked when lib was "lib/..." but fails for other values. Thanks go to Patrick Samson for pointing this out.
* | added #pragma comment(lib, "advapi32.lib") when compilingdavygrvy2004-01-171-1/+8
| | | | | | | | under VC++
* | * unix/tclUnixInit.c (TclpInitLibraryPath):dgp2003-11-101-3/+22
| | | | | | | | | | * win/tclWinInit.c (TclpInitLibraryPath): Fix for [Bug 832657] that should not run afoul of startup constraints.
* | * win/tclWinInit.c: recognize amd64 and ia32_on_win64 cpus.hobbs2003-08-061-3/+10
| |
* | * win/tclWinInt.h (VER_PLATFORM_WIN32_CE): conditionally define.hobbs2003-04-181-3/+3
|/ | | | | * win/tclWinInit.c: recognize Windows CE as a Win platform. This just recognizes CE - full support will come later.
* Fixed a bug in TclpSetVeriables: initialize dwUserNameLen to avoid crash in ↵chengyemao2003-02-271-2/+2
| | | | calling GetUserName
* Added conversion from the system encoding to tcl_platform(user), so Kevin B Kenny2003-02-131-5/+9
| | | | that it works with non-ASCII7 user names. [Bug 685926]
* finalization and test fixesvincentdarley2003-02-041-4/+4
|