summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
Commit message (Collapse)AuthorAgeFilesLines
* merge 8.7jan.nijtmans2018-05-291-11/+23
|\
| * merge 8.6jan.nijtmans2018-05-291-11/+23
| |\
| | * merge 8.5 (conflicts resolved, rewritten without winapi-stubs)sebres2018-05-281-11/+23
| | |\
| | | * optimized winapi-stubs loading (8.5th only); if user name specified without ↵sebres2018-05-251-11/+23
| | | | | | | | | | | | | | | | domain and equals the current user - try safest and fastest way to get current user-home path (without usage of netapi)
* | | | merge core-8-branchjan.nijtmans2018-01-101-1/+0
|\ \ \ \ | |/ / /
| * | | Re-implement Tcl_WinTCharToUtf/Tcl_WinUtfToTChar in pure win32 api, even for ↵jan.nijtmans2018-01-101-7/+0
| | | | | | | | | | | | | | | | TCL_UTF_MAX=3. We can do that now safely, because of the changed handling of valid 4-byte UTF-8 characters in the previous commit.
| * | | Revert a few more (int -> size_t) transitions, which could effect extensions ↵jan.nijtmans2017-12-151-3/+3
| | | | | | | | | | | | | | | | | | | | (such as Itcl 3.4) which use internal Tcl header files. Better wait until 9.0 for this. What we _can_ do is change some (internal) fields to 'unsigned': that doubles the epoch range without further danger. Thanks, Don, for pointing this out!
* | | | merge 8.7jan.nijtmans2017-12-071-10/+2
|\ \ \ \ | |/ / /
| * | | Re-base "stop-ce" branch to core-8-branch. This is what will be proposed for ↵jan.nijtmans2017-11-231-10/+2
| |\ \ \ | | | | | | | | | | | | | | | 8.7 in TIP #487.
| | * | | Drop Windows CE support, since it doesn't appear to work anyway.jan.nijtmans2017-11-211-10/+2
| | |/ /
* | | | Fogot to remove the TclWinSetInterfaces() implementation.jan.nijtmans2017-11-091-6/+0
|/ / /
* | | merge core-8-6-branchjan.nijtmans2017-05-031-14/+6
|\ \ \ | |/ /
| * | Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed ↵jan.nijtmans2017-05-031-14/+6
| |\ \ | | |/ | | | | | | | | | for an already loaded dll. Fix filesystem-1.52 (only works correctly on UNIX)
| | * Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed ↵jan.nijtmans2017-05-031-4/+1
| | | | | | | | | | | | | | | for an already loaded dll. Fix filesystem-1.52 (only works correctly on UNIX)
* | | merge core-8-6-branchjan.nijtmans2017-05-011-0/+20
|\ \ \ | |/ /
| * | merge core-8-6-branchjan.nijtmans2017-04-281-1/+1
| |\ \
| * | | shared structures of pipe-workers rewritten using atomic state of the thread; sebres2017-04-111-0/+20
| |/ / | | | | | | | | | asynchronous start/stop of pipe-workers (if possible), try the soft way to end workers using cancelSynchronousIo before it would be terminated;
* | | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-8/+9
| | | | | | | | | | | | type-casts which are not necessary any more.
* | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-1/+1
|/ / | | | | | | in many places where possible.
* | Remove unused variable, don't use deprecated function, some formatting.jan.nijtmans2014-04-161-5/+5
| |
* | Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on ↵jan.nijtmans2014-04-161-14/+10
|\ \ | |/ | | | | | | | | Win2000+. See: [http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx] for details. Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2. Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
| * Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on ↵jan.nijtmans2014-04-161-14/+10
| | | | | | | | | | | | Win2000+. See: [http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx] for details. Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2. Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
* | Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
|\ \ | |/
| * Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
| |
* | Add missing __stdcall (which crashes on win32), and clean-up indentingjan.nijtmans2014-02-041-10/+11
|\ \ | |/
| * Add missing __stdcall (which crashes on win32), and clean-up indentingjan.nijtmans2014-02-041-10/+11
| |
* | Fix [651e828a52]: Wrong Windows version reported for Windows 8.1jan.nijtmans2014-02-031-4/+14
|\ \ | |/
| * Fix [651e828a52]: Wrong Windows version reported for Windows 8.1jan.nijtmans2014-02-031-4/+14
| |
* | Starting with Windows 8 DSK, GetVersionExA is deprecatedjan.nijtmans2013-11-201-3/+3
|\ \ | |/
| * Starting with Windows 8 DSK, GetVersionExA is deprecatedjan.nijtmans2013-11-201-3/+3
| |
* | Eliminate a lot of dead code (for Windows 95/98/ME only). jan.nijtmans2013-06-191-6/+3
| | | | | | Eliminate all usage of TclWinSetInterfaces(), which does exactly the same as TclpSetInterfaces(), but keep exported symbol and stub entry.
* | also search for the library directory (init.tcl, encodings, etc) relative to ↵Joe Mistachkin2012-11-131-1/+63
|\ \ | |/ | | | | the build directory associated with the source checkout.
| * also search for the library directory (init.tcl, encodings, etc) relative to ↵Joe Mistachkin2012-11-131-1/+63
| | | | | | | | the build directory associated with the source checkout.
* | Move CYGWIN-specific stuff from tclPort.h to tclUnixPort.h, where it belongsjan.nijtmans2012-04-271-2/+0
|\ \ | |/
| * [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
| | |
* | | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-3/+2
| | | | | | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one.
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-4/+4
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | cause more harm than good. Purged them (except in zlib files).
| * | 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]
* | | Various clean-ups, converting from tclWinProc->xxxProc directly to Xxxnijtmans2010-09-131-5/+5
| | | | | | | | | | | | (no change in functionality)