summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
Commit message (Collapse)AuthorAgeFilesLines
* eliminate TclWinResetInterfaceEncodings, becausenijtmans2009-08-021-30/+3
| | | | | | it does exactly the same as TclWinEncodingsCleanup, make sure that tclWinProcs and tclWinTCharEncoding are always set and reset concurrently.
* Handle the GetUserName API call appropriately for wide/narrow versions. [Bug ↵patthoyts2009-07-011-5/+8
| | | | 2806622]
* - eliminate some unnessary type castsnijtmans2009-02-031-2/+2
| | | | | - some internal const decorations - spacing
* Style improvements - invoking callbacks without visual junk.dkf2008-10-261-2/+2
|
* Add "const" to many internalnijtmans2008-10-161-3/+3
| | | | | const tables. No functional or API change.
* * win/tclWinChan.c: Fix minor compiler warnings whennijtmans2008-10-141-3/+3
| | | | | | | * win/tclWinDde.c: compiling wit -Wwrite-strings * win/tclWinInit.c: * win/tclWinReg.c: * win/tclWinSerial.c:
* Implement TIP #315.dkf2008-09-251-1/+7
|
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-13/+13
|
* 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
|
* WinTcl crash on exit fixvincentdarley2003-01-101-7/+7
|
* * generic/tclStubInit.c: regenhobbs2002-12-061-1/+30
| | | | | | | | | | | | * generic/tclIntPlatDecls.h: regen * generic/tclInt.decls: added TclWinResetInterface * win/tclWin32Dll.c (TclWinResetInterfaces): * win/tclWinInit.c (TclpSetInitialEncodings, WinEncodingsCleanup): add exit handler that resets the encoding information to a state where we can reuse Tcl. Following these changes, it is possible to reuse Tcl (following Tcl_FindExecutable or Tcl_CreateInterp) following a Tcl_Finalize.
* * Partial TIP 27 rollback. Following routinesdgp2002-02-081-3/+2
| | | | | | | | | | | | | restored to return (char *): Tcl_DStringAppend, Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName, Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString, Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also restored Tcl_WinUtfToTChar to return (TCHAR *) and Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified some callers. This change recognizes that Tcl_DStrings are de-facto white-box objects. * generic/tclCmdMZ.c: corrected use of C++-style comment.
* win/tclWinInit.c (TclpFindVariable): CONSTification touch-uphobbs2002-01-291-3/+4
|