summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* added a slot position for a project of my own.davygrvy2004-03-081-1/+2
|
* Checks MSDevDir, not MSVCDir envar.davygrvy2004-03-081-2/+2
|
* * win/configure: Regen.mdejong2004-03-053-2/+92
| | | | | | | | * win/configure.in: Check for define of MWMO_ALERTABLE in winuser.h. * win/tclWinPort.h: If MWMO_ALERTABLE is not defined in winuser.h then define it. This is needed for Mingw.
* Added TIP #100 support to the registry package (patch #903831)patthoyts2004-03-041-4/+81
| | | | | This provides a Windows test of the TIP #100 mechanism and a sample to show how unloading an extension can be done.
* fixed some commentary.davygrvy2004-03-031-3/+3
|
* * win/tclWinNotify.c (Tcl_WaitForEvent) : Allows an idling notifier to servicedavygrvy2004-03-031-5/+15
| | | | | | | | "Asynchronous Procedure Calls" from its wait state. Only useful for extension authors who decide they might want to try "completion routines" with WriteFileEx(), as an example. From experience, I recommend that "completion ports" should be used instead as the execution of the callbacks are more managable.
* default environment variable for VC++ is %MSDevDir% not %MSVCDir%,davygrvy2004-03-031-2/+2
| | | | although vcvars32.bat sets both.
* update patchlevel to 8.5a1hobbs2004-03-023-6/+6
|
* * win/tclWinDde.c: Removed some gcc warnings - except for thepatthoyts2004-02-251-5/+5
| | | | | -Wconversion warning for GetGlobalAtomName. gcc is just wrong about this.
* (SocketThreadExitHandler): Don't call TerminateThread whendavygrvy2004-02-211-14/+5
| | | | | | | WaitForSingleObject returns a timeout. Tcl_Finalize called from DllMain will pause all threads. Trust that the thread will get the close notice at a later time if it does ever wake up before being cleaned up by the system anyway.
* * 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.
* better macro grepping logicdavygrvy2004-02-101-2/+6
|
* minor bug fix for last commit.davygrvy2004-02-081-2/+2
|
* * win/makefile.vc:davygrvy2004-02-074-14/+36
| | | | | | | | | | | | | | * win/rules.vc: * win/tcl.rc: * win/tclsh.rc: Added an 'unchecked' option to the OPTS macro so a core build with symbols can be linked to the non-debug enabled C run-time. As per discussion with Kevin Kenny. Called like this: nmake -af makefile.vc OPTS=unchecked,symbols This clarifies the meaning of the 'g' naming suffix to mean only that the binary requires the debug enabled C run-time. Whether the binary contains symbols or not is a seperate condition.
* minor formatting and some commentary.davygrvy2004-02-021-9/+11
|
* * tests/winPipe.test: Six more cases added.davygrvy2004-02-021-6/+2
| | | | | * win/tclWinPipe.c: Fixed BuildCommandLine() to pass the new cases.
* * tests/winPipe.test: Added proof that BuildCommandLine() is notdavygrvy2004-02-021-8/+12
| | | | | | | | doing the "N backslashes followed a quote -> insert N * 2 + 1 backslashes then a quote" rule needed for the crt's parse_cmdline(). * win/tclWinPipe.c: Fixed BuildCommandLine() to pass the new cases.
* * win/nmakehlp.c: defensive techniques to avoid static bufferdavygrvy2004-02-011-14/+18
| | | | | overflows and a couple envars upsetting invokations of cl.exe and link.exe.
* * tests/winPipe.test: more pass-thru commandline verifications.davygrvy2004-02-012-151/+11
| | | | | | | * win/tclWinPipe.c (BuildCommandLine): Special case quoting for '{' not required by the c-runtimes's _setargv(). * win/tclAppInit.c: Removed our custom setargv() in favor of the one provided by the c-runtime. [Bug 672938]
* * win/makefile.vc: Use the -GZ compiler switch when building fordavygrvy2004-01-301-3/+3
| | | | | | symbols. This is supposed to emulate the release build better to avoid hiding problems that would only show themselves in a release build.
* filesystem fixes for '-force' consistency and picky compilersvincentdarley2004-01-291-1/+6
|
* * win/nmakehlp.c: Use '.\nul' as the sourcefile name instead ofdavygrvy2004-01-281-3/+6
| | | | | | | 'nul' so VC 5.2 doesn't try searching the path for it and failing with a possible dialogbox popping up about having to add a CD to an empty drive. Also added a SetErrorMode() call to disable any dialogs. [Bug 885537]
* file normalize bug fixes for .. and .vincentdarley2004-01-231-4/+13
|