summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* Version 5 of [Patch 976496]Joe Mistachkin2004-06-245-3/+24
|
* * win/makefile.vc: fix for bug #977369 about launching tclsh topatthoyts2004-06-231-2/+4
| | | | generate a tclConfig.sh with the nmake build system
* Integrated fix for Tcl Bug #770053 from core-8-4-branchvasiljevic2004-06-221-3/+3
|
* * win/tclWin32Dll.c (DllMain, _except_dllmain_detach_handler,mdejong2004-06-213-42/+223
| | | | | | | | | | | | | | | 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.
* 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.
* * win/Makefile.in: Corrected compilation flags for tclPkgConfig.cKevin B Kenny2004-06-141-3/+3
| | | | | | | so that it doesn't require Stubs. * generic/tclBasic.c (Tcl_CreateInterp): Removed comment stating that TclInitEmbeddedConfigurationInformation needs Stubs; with the change above, the comment is now erroneous.
* * unix/tclUnixInit.c: The routines Tcl_Init() and TclSourceRCFile()dgp2004-06-112-113/+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/configure.in: Updated TCL_PACKAGE_PATH value todgp2004-06-112-3/+3
| | | | | | | | | | | | * win/configure.in: handle --libdir configuration. * unix/configure.in: autoconf-2.57 * win/configure.in: * generic/tclBasic.c (Tcl_CreateInterp): Moved call to TclInitEmbeddedConfigurationInformation() earlier in Tcl_CreateInterp() so that other parts of interp creation and initialization may access and use the config values.
* * win/tclAppInit.c: Restored the 'setargv' procedure when Kevin B Kenny2004-06-111-1/+126
| | | | | | | compiling with mingw. Apparently, the command line parsing in mingw doesn't work as well as that in vc++, and the result was (1) that winPipe-8.19 failed, and (2) that 'make test' would work at all only with TESTFLAGS='-singleproc 1'. [Bug 967195]
* * 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.
* * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw Kevin B Kenny2004-06-053-5/+246
| | | | | | | | | | | | | | | | | | | | build works again. * generic/tclDecls.h: Changes to the tests for * generic/tclInt.decls: clock frequency in * generic/tclIntDecls.h: Tcl_WinTime * generic/tclIntPlatDecls.h: so that any clock frequency * generic/tclPlatDecls.h: is accepted provided that * generic/tclStubInit.c: all CPU's in the system share * tests/platform.test (platform-1.3): a common chip, and hence, * win/tclWin32Dll.c (TclWinCPUID): presumably, a common clock. * win/tclWinTest.c (TestwincpuidCmd) This change necessitated a * win/tclWinTime.c (Tcl_GetTime): 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/tclWinFile.c (TclpFindExecutable): when usinghobbs2004-06-021-4/+6
| | | | | GetModuleFileNameA (Win9x), convert from CP_ACP to WCHAR then convert back to utf8. Adjunct to 2004-04-07 fix.
* * win/makefile.vc: check for either MSDEVDIR or MSVCDIR being indavygrvy2004-06-011-2/+2
| | | | the environment, for VC7. [Bug 942214]
* * win/tclWinPipe.c:davygrvy2004-05-302-46/+70
| | | | | | | | | * win/tclWinPort.h: Reworked the win implementation of Tcl_WaitPid to support exitcodes in the 'signed short' range. Even though this range is non-portable, it is valid on windows. Detection of exception codes are now more accurate. Previously, an application that exited with ExitProcess((DWORD)-1); was improperly reported as exiting with SIGABRT.
* * win/tclWinFile.c (TclpMatchInDirectory): fix for an issue Kevin B Kenny2004-05-191-2/+3
| | | | | | | | | where there was a sneak path from Tcl_DStringFree to SetErrorCode(0). The result was that the error code could be reset between a call to FindFirstFileEx and the check of its status return, leading to a bizarre error return of {POSIX unknown {No error}}. (Found in unplanned test - no incident logged at SourceForge.)
* * win/makefile.vc: now generates a tclConfig.sh from Pat Thoytsdavygrvy2004-05-181-2/+78
| | | | [Patch 909911]
* fix to case sensitive 'file executable' on Windowsvincentdarley2004-05-171-4/+7
|
* 2004-05-14 Kevin B. Kenny <kennykb@acm.org> Kevin B Kenny2004-05-141-2/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h: * generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848] * unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong. * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848] * tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately. * win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls.
* (BuildCommandLine): Use the existence of contents in the linePtr ratherdavygrvy2004-05-101-2/+2
| | | | than the scratch DString post the append, as this more clear.
* (TclpCreateProcess): When under NT, with no console, and executing adavygrvy2004-05-101-2/+2
| | | | | DOS application, the path priming does not need an ending space as BuildCommandLine() will do this for us.
* (BuildCommandLine): Moved non-obvious appending logic to outside the loopdavygrvy2004-05-101-6/+7
| | | | and added commentary for its purpose.
* had to raise the size of the tls extension due to it getting rather fat when ↵davygrvy2004-05-101-2/+2
| | | | built statically to OpenSSL
* Refix bug 789040 re-entered in rev 1.41chengyemao2004-05-081-2/+3
|
* added the tls extension to the list of preferred load addresses.davygrvy2004-05-051-1/+2
|
* (SocketEventProc) : connect errors should fire both the readable anddavygrvy2004-05-051-2/+6
| | | | writable handlers because this is how it works on UNIX [Bug 794839]
* * win/tclWin32Dll.c (TclpCheckStackSpace): Kevin B Kenny2004-05-031-2/+2
| | | | | * tests/stack.test (stack-3.1): Fix for undetected stack overflow in TclReExec on Windows. [Bug 947070]
* A little source clean-up with the allocOnce variable.davygrvy2004-04-271-4/+6
|
* (DllMain): Added DisableThreadLibraryCalls() for the DLL_PROCESS_ATTACHdavygrvy2004-04-241-1/+2
| | | | | case. We're not interested in knowing about DLL_THREAD_ATTACH, so disable it.
* (Tcl_MakeFileChannel) : Case for CloseHandle returning zero and notdavygrvy2004-04-231-7/+13
| | | | | throwing a RaiseException(EXCEPTION_INVALID_HANDLE) now being done.
* Removed my mistake of adding an exit handler to TclWinInit.davygrvy2004-04-231-30/+1
| | | | | TclWinEncodingsCleanup called from TclFinalizeFilesystem does the Tcl_FreeEncoding for us.
* * generic/tclInt.h:davygrvy2004-04-231-5/+36
| | | | | | | | | * generic/tclThread.c: * generic/tclEvent.c: * unix/tclUnixThrd.c: * win/tclWinThrd.c: Provisions made so masterLock, initLock, allocLock and joinLock mutexes can be recovered during Tcl_Finalize.
* * win/tclWinTime.c: If the Tcl_ExitProc (StopCalibration) isdavygrvy2004-04-231-2/+6
| | | | | called from the stack frame of DllMain's PROCESS_DETACH, the wait operation should timeout and continue.
* Added an exit handler in tclWinInit() so tclWinTCharEncoding could be freeddavygrvy2004-04-201-1/+30
| | | | for Tcl_Finalize.
* * win/tclWinInit.c (TclpSetInitialEncodings): note that WIN32_CEhobbs2004-04-072-19/+26
| | | | | | | | | | 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/configure: define TCL_LIB_FLAG, TCL_BUILD_LIB_SPEC,hobbs2004-04-072-9/+33
| | | | * win/configure.in: TCL_LIB_SPEC, TCL_PACKAGE_PATH in tclConfig.sh.
* Patch 922727 committed. Implements three changes:dgp2004-04-061-53/+0
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
* Patch 922727 committed. Implements three changes:dgp2004-04-0611-61/+28
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
* * README: Bumped version number to 8.5a2 todgp2004-03-263-5/+5
| | | | | | | | | | | * tools/tcl.wse.in: distinguish HEAD of CVS development * unix/configure.in: from the recent 8.5a1 release. * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.57 * win/configure:
* Made HEAD build on Windows VC++ again.Kevin B Kenny2004-03-193-14/+14
|
* * generic/tclIntDecls.h: Removed TclpTime_t. It wasn't really needed,rmax2004-03-181-10/+9
| | | | | | | | | | * generic/tclInt.h: but caused warnings related to * generic/tclInt.decls: strict aliasing with GCC 3.3. * generic/tclClock.c: * generic/tclDate.c: * generic/tclGetDate.y: * win/tclWinTime.c: * unix/tclUnixTime.c:
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-172-11/+3
|
* * win/tclWinNotify.c: Fixed a mistake where the return value ofdavygrvy2004-03-161-3/+2
| | | | | | | | MsgWaitForMultipleObjectsEx for "a message is in the queue" wasn't accurate. I removed the check on the case result==(WAIT_OBJECT_0 + 1) This was having the error of falling into GetMessage and waiting there by accident, which wasn't alertable through Tcl_AlertNotifier. I'll do some more study on this and try to find-out why.