summaryrefslogtreecommitdiffstats
path: root/win/tclWin32Dll.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge core-8-6-branch. Update outdated comment (cherry-pick ↵jan.nijtmans2017-08-171-2/+2
|\ | | | | | | [d5dec2b0514639f44929cbbba9c4130798a8a54a|d5dec2b051])
| * Support cross-compiling Tcl for 'Win32 on ARM' using Visual Studio.Joe Mistachkin2017-08-131-2/+2
| |
* | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-1/+1
| | | | | | | | type-casts which are not necessary any more.
* | Fix harmless gcc warning message: using "unsigned" doesn't serve any ↵jan.nijtmans2016-11-111-2/+2
|/ | | | purpose, actually.
* Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-2/+2
| | | | | Clang/LLVM) don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
* 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
| |
* | Fix compilation with latest MinGW-w64 version 3.0: Conflict on ↵jan.nijtmans2013-10-021-23/+6
|\ \ | |/ | | | | EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
| * Fix compilation with latest MinGW-w64 version 3.0: Conflict on ↵jan.nijtmans2013-10-021-29/+12
| | | | | | | | EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
* | Eliminate a lot of dead code (for Windows 95/98/ME only). jan.nijtmans2013-06-191-22/+6
| | | | | | Eliminate all usage of TclWinSetInterfaces(), which does exactly the same as TclpSetInterfaces(), but keep exported symbol and stub entry.
* | Remove tclWinProcs, as it is no longer being usedjan.nijtmans2011-10-051-80/+0
| |
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-6/+6
| | | | | | 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.
| | * Fix missing comma in last commitandreas_kupries2010-11-081-2/+2
| | |
| | * Backported from 8.6 (see 2010-08-04).andreas_kupries2010-11-031-3/+3
| | | | | | | | | | | | | | | | | | | | | * win/tclWin32Dll.c (asciiProcs, unicodeProcs): * win/tclWinLoad.c (TclpDlopen): 'load' use LoadLibraryEx with * win/tclWinInt.h (TclWinProcs): LOAD_WITH_ALTERED_SEARCH_PATH to prefer dependent DLLs in same dir as loaded DLL.
| | * * generic/tclIOUtil.c: Cleaned up some code flagged by adgp2006-10-171-4/+4
| | | | | | | | | | | | | | | | | | * generic/tclInt.h: `make checkexports` test. * win/tclWin32Dll.c: * win/tclWinFile.c:
| | * backport of some file readable/writable fixes from HEADvincentdarley2006-03-101-1/+42
| | |
| | * * win/tclWin32Dll.c: Backported Anton Kovalenko's patch #1256872patthoyts2005-11-031-1/+5
| | | | | | | | | | | | | | | * win/tclWinConsole.c: to give unicode console support on * win/tclWinInt.h: suitable systems (eg: NT/XP)
| | * Correct crash in stack.test on gcc/win32Kevin B Kenny2005-06-061-298/+242
| | |
| | * * win/tclWin32Dll.c (TclWinCPUID): need _asm for WIN64 (Itanium),hobbs2004-09-011-3/+3
| | | | | | | | | | | | until we have it, just return unknown. [Bug 1020445]
| | * backport of recent fs fixes from cvs headvincentdarley2004-07-021-1/+9
| | |
| | * * win/tclWin32Dll.c (DllMain, _except_dllmain_detach_handler,mdejong2004-06-211-23/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclpCheckStackSpace, _except_checkstackspace_handler, TclWinCPUID, _except_TclWinCPUID_detach_handler): * win/tclWinChan.c (Tcl_MakeFileChannel, _except_makefilechannel_handler): * win/tclWinFCmd.c (DoRenameFile, _except_dorenamefile_handler, DoCopyFile, _except_docopyfile_handler): Rework pushing of exception handler function pointer so that compiling with gcc -O3 works. Remove empty function call to avoid compiler warning. Mark the DllMain function as noinline to avoid compiler error from duplicated asm labels in generated code.
| | * * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw Kevin B Kenny2004-06-051-1/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build works again. * generic/tclInt.decls: Changes to the tests for * generic/tclIntPlatDecls.h: clock frequency in Tcl_WinTime * generic/tclStubInit.c: so that any clock frequency * tests/platform.test (platform-1.3): is accepted provided that * win/tclWin32Dll.c (TclWinCPUID): all CPU's in the system share * win/tclWinTest.c (TestwincpuidCmd): a common chip, and hence, * win/tclWinTime.c (Tcl_GetTime): presumably, a common clock. This change necessitated a small burst of assembly code to read CPU ID information, which was added as TclWinCPUID in the internal Stubs. To test this code in the common case of a single-processor machine, a 'testwincpuid' command was added to tclWinTest.c, and a test case in platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for reporting this bug. [Bug #976722]
| | * * win/tclWin32Dll.c: Structured Exception Handling added arounddavygrvy2004-05-061-3/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tcl_Finalize called from DllMain's DLL_PROCESS_DETACH. We can't be 100% assured that Tcl is being unloaded by the OS in a stable condition and we need to protect the exit handlers should the stack be in a hosed state. AT&T style assembly for SEH under MinGW included, too. [Patch 858493] Also added DisableThreadLibraryCalls() for the DLL_PROCESS_ATTACH case. We're not interested in knowing about DLL_THREAD_ATTACH, so disable the notices.
| | * filesystem fixes backportedvincentdarley2003-04-141-3/+190
| | |
| * | handle --enable-64bit=ia64 for gcc. BACKPORT.nijtmans2011-01-171-6/+44
| | | | | | | | | | | | [Patch 3059922]: fixes for mingw64 - gcc4.5.1
| * | fix gcc warnings: unused variable 'registration'nijtmans2010-11-191-3/+3
| | |
| * | * win/tclWin32Dll.c: #ifdef protections to permit builds withdgp2010-09-081-3/+7
| | | | | | | | | | | | | | | * win/tclWinChan.c: mingw on amd64 systems. Thanks to "mescalinum" * win/tclWinFCmd.c: for reporting and testing.
| * | * win/tclWin32Dll.c (asciiProcs, unicodeProcs):hobbs2010-08-041-3/+3
| | | | | | | | | | | | | | | | | | * win/tclWinLoad.c (TclpDlopen): 'load' use LoadLibraryEx with * win/tclWinInt.h (TclWinProcs): LOAD_WITH_ALTERED_SEARCH_PATH to prefer dependent DLLs in same dir as loaded DLL.
| * | Handle the GetUserName API call appropriately for wide/narrow versions. [Bug ↵patthoyts2009-07-011-3/+5
| | | | | | | | | | | | 2806622]
* | | VS 2005 64-bit does not have intrin.h, and does not need it.nijtmans2011-01-121-2/+2
| | |
* | | [Patch 3059922]: fixes for mingw64 - gcc4.5.1 tdm64-1: completed for all ↵nijtmans2010-12-211-3/+18
| | | | | | | | | | | | environments.
* | | [Patch 3124554]: fixes for mingw64 - gcc4.5.1 tdm64-1:nijtmans2010-12-191-5/+36
| | | | | | | | | | | | Fixed for gcc, not yet for MSVC 64-bit.
* | | fix gcc warnings: unused variable 'registration'nijtmans2010-11-191-2/+2
| | |
* | | [FRQ 491789]: "setargv() doesn't support a unicode cmdline" implemented for ↵nijtmans2010-11-041-3/+3
| | | | | | | | | | | | Tcl on MSVC++
* | | Eliminate many tclWinProcs-> indirect calls, which are no longer needed.nijtmans2010-10-121-11/+11
| | | | | | | | | | | | Fix some MSVC 6.0 warnings
* | | Allow all Win2000+ API entries in Tclnijtmans2010-09-141-109/+55
| | | | | | | | | | | | Eliminate dynamical loading of advapi23 and kernal32 symbols.
* | | Partly revert yesterday's change, to make it work on VC++ 6.0 again.nijtmans2010-09-101-22/+74
| | |
* | | mingw should always link with -ladvapi32nijtmans2010-09-091-230/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove ascii variant of tkWinPocs table, it is no longer necessary. Fix CreateProcess signature and remove unused GetModuleFileName and lstrcpy mingw/cygwin fixes: <tchar.h> should always be included, and fix conflict in various macro values: Always force the same values as in VC++.
* | | * win/tclWin32Dll.c (TclWinInit): hard-enforce Windows 9x as anhobbs2010-08-041-7/+10
| | | | | | | | | | | | | | | | | | unsupported platform with a panic. Code to support it still exists in other files (to go away in time), but new APIs are being used that don't exist on Win9x.
* | | * win/tclWin32Dll.c (asciiProcs, unicodeProcs):hobbs2010-08-041-3/+3
| | | | | | | | | | | | | | | | | | * win/tclWinLoad.c (TclpDlopen): 'load' use LoadLibraryEx with * win/tclWinInt.h (TclWinProcs): LOAD_WITH_ALTERED_SEARCH_PATH to prefer dependent DLLs in same dir as loaded DLL.
* | | Remove unnecessary '&' decoration for functionnijtmans2010-03-111-3/+1
| | | | | | | | | | | | | | | pointers. Fix double declaration of TclNativeDupInternalRep
* | | test that tclOO stubs are present in stub librarynijtmans2010-03-071-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | Applied missing part of [Patch 2961556] Change all tclWinProcs signatures to use TCHAR* in stead of WCHAR*. This is meant as preparation to make [Enh 2965056] possible at all.
* | | reverted earlier rename from tcl*Stubs tonijtmans2010-02-151-34/+88
| | | | | | | | | | | | | | | | | | | | | | | | tcl*ConstStubs, it's not necessary at all. tclEnsemble.c: Fix signed-unsigned mismatch make tclWinProcs "const" Add first part of mslu support, See [Feature Request #2819611]
* | | eliminate TclWinResetInterfaceEncodings, becausenijtmans2009-08-021-14/+14
| | | | | | | | | | | | | | | | | | 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-3/+5
| | | | | | | | | | | | 2806622]
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-3/+3
| | |
* | | * doc/Exit.3: do not call Tcl_Finalize implicitlyhobbs2008-08-011-103/+4
| | | | | | | | | | | | | | | | | | | | | * generic/tclEvent.c: on DLL_PROCESS_DETACH as it may lead * win/tclWin32Dll.c (DllMain): to issues and the user should be explicitly calling Tcl_Finalize before unloading regardless. Clarify the docs to note the explicit need in embedded use.