summaryrefslogtreecommitdiffstats
path: root/win/tclWinTest.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-1/+1
| | | | | 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]
* Eliminate some unneeded usages of Tcl_SetResult, Tcl_AddObjErrorInfojan.nijtmans2013-01-251-1/+1
| | | Fix "make test-packages" on cygwin
* Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-80/+0
|\
| * Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-80/+0
| |\
| | * Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-62/+0
| | | | | | | | | Simplify stub tables for functions which work on both UNIX and windows
* | | make some more internal tables constjan.nijtmans2012-04-231-1/+1
|\ \ \ | |/ /
| * | make some more internal tables constjan.nijtmans2012-04-231-1/+1
| |\ \ | | |/
| | * make some more internal tables constjan.nijtmans2012-04-231-2/+2
| | | | | | | | | On cygwin, install dll's in /usr/bin, not in /usr/lib
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-4/+3
| | |
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-1/+1
| | |
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-1/+1
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-7/+7
| | | | | | | | | 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.
| | * Removed C++ commentpatthoyts2006-03-271-2/+2
| | |
| | * Fixes for bug #1456373 and general warning silencing for gcc build.patthoyts2006-03-271-25/+29
| | |
| | * fix to permissions settingvincentdarley2006-03-211-18/+2
| | |
| | * ensure test suite works on non-English systemsvincentdarley2006-03-191-1/+342
| | |
| | * * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw Kevin B Kenny2004-06-051-2/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
| | * Fixed Bug 710310 (duplicate test numbers in clock.test). Made major Kevin B Kenny2003-04-121-2/+64
| | | | | | | | | | | | | | | changes to tclWinTime.c and related code to improve loop filter stability.
| * | Various CYGWIN-related fixesnijtmans2010-01-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | backported from HEAD. Still configure script not modified, so CYGWIN build is still disabled. Reason: although the build succeeds with those changes, many tests still fail.
| * | * tclWinTest.c: Fix compiler warning when compiling this file with mingw gcc:nijtmans2008-10-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | tclWinTest.c:706: warning: dereferencing type-punned pointer will break strict-aliasing rules * generic/tclLoad.c: Make sure that any library which doesn't have an unloadproc is only really unloaded when no library code is executed yet. [Bug 2059262]
* | | Eliminate many tclWinProcs-> indirect calls, which are no longer needed.nijtmans2010-10-121-5/+1
| | | | | | | | | | | | Fix some MSVC 6.0 warnings
* | | [FRQ 2965056]: Windows build with -DUNICODEnijtmans2010-10-111-119/+20
| | | | | | | | | | | | Add netapi32 to the windows link line, so we no longer have to use LoadLibrary to access those functions.
* | | [Freq 2965056]: Windows build with -DUNICODEnijtmans2010-08-301-1/+7
| | |
* | | Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-181-3/+5
| | | | | | | | | | | | get created with static Tcl build
* | | - eliminate some unnessary type castsnijtmans2009-02-031-2/+2
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | Add "const" to many internalnijtmans2008-10-161-2/+2
| | | | | | | | | | | | | | | const tables. No functional or API change.
* | | Fix a gcc warning when compiling Tcl with mingw32nijtmans2008-07-191-4/+4
|/ / | | | | | | | | tclWinTest.c: In function `TestplatformChmod': tclWinTest.c:706: warning: dereferencing type-punned pointer will break strict-a liasing rules
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Reduce cast count.dkf2007-11-191-239/+265
| |
* | * generic/tclGetDate.y: Added a cast to the definition of YYFREE toKevin B Kenny2007-08-061-4/+5
| | | | | | | | | | | | | | | | silence compiler warnings. * generic/tclDate.c: Regenerated * win/tclWinTest.c: Added a cast to the call to GetSecurityDescriptorDacl to silence compiler warnings.
* | Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-7/+9
| |
* | various "const" additions in implementationnijtmans2007-03-081-20/+19
| |
* | Fixes for bug #1456373 (mingw-gcc issue).patthoyts2006-03-271-13/+19
| |
* | fix to permissions settingvincentdarley2006-03-211-18/+2
| |
* | ensure test suite works on non-English systemsvincentdarley2006-03-191-4/+25
| |
* | Fix compilation error.Joe Mistachkin2006-03-171-3/+3
| |
* | 90% fix of file writable issues on Windowsvincentdarley2006-03-141-1/+320
| |
* | ANSIfydkf2005-11-041-117/+101
| |
* | * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw Kevin B Kenny2004-06-051-2/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* | Patch 922727 committed. Implements three changes:dgp2004-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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):
* | Implemented TIP #124 (clock clicks -microseconds and Tcl_WideInt Kevin B Kenny2003-04-121-2/+64
|/ | | | | | return values). Fixed Bug 710310 (duplicate test numbers in clock.test). Made major changes to tclWinTime.c and related code to improve loop filter stability.
* * generic/tclPipe.c (TclCleanupChildren):davygrvy2002-12-171-2/+113
| | | | | | | | | | | | | | * tests/winPipe.c: * win/tclWinPipe.c (Tcl_WaitPid): * win/tclWinTest.c: Gave Tcl_WaitPid the ability to return a Win32 exception code translated into a posix style SIG*. This allows [close] to report "CHILDKILLED" without the meaning getting lost in a truncated exit code. In TclCleanupChildren(), TclpGetPid() had to get moved to before Tcl_WaitPid() as the the handle is removed from the list taking away the ability to get the process id after the wait is done. This shouldn't effect the unix implimentaion unless waitpid is called with a pid of zero, meaning "any". I don't think it is..
* * doc/CmdCmplt.3: Applied Patch 585105 to fully CONST-ifydgp2002-08-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Concat.3: all remaining public interfaces of Tcl. * doc/CrtCommand.3: Notably, the parser no longer writes on * doc/CrtSlave.3: the string it is parsing, so it is no * doc/CrtTrace.3: longer necessary for Tcl_Eval() to be * doc/Eval.3: given a writable string. Also, the * doc/ExprLong.3: refactoring of the Tcl_*Var* routines * doc/LinkVar.3: by Miguel Sofer is included, so that the * doc/ParseCmd.3: "part1" argument for them no longer needs * doc/SetVar.3: to be writable either. * doc/TraceVar.3: * doc/UpVar.3: Compatibility support has been enhanced so * generic/tcl.decls that a #define of USE_NON_CONST will remove * generic/tcl.h all possible source incompatibilities with * generic/tclBasic.c the 8.3 version of the header file(s). * generic/tclCmdMZ.c The new #define of USE_COMPAT_CONST now does * generic/tclCompCmds.c what USE_NON_CONST used to do -- disable * generic/tclCompExpr.c only those new CONST's that introduce * generic/tclCompile.c irreconcilable incompatibilities. * generic/tclCompile.h * generic/tclDecls.h Several bugs are also fixed by this patch. * generic/tclEnv.c [Bugs 584051,580433] [Patches 585105,582429] * generic/tclEvent.c * generic/tclInt.decls * generic/tclInt.h * generic/tclIntDecls.h * generic/tclInterp.c * generic/tclLink.c * generic/tclObj.c * generic/tclParse.c * generic/tclParseExpr.c * generic/tclProc.c * generic/tclTest.c * generic/tclUtf.c * generic/tclUtil.c * generic/tclVar.c * mac/tclMacTest.c * tests/expr-old.test * tests/parseExpr.test * unix/tclUnixTest.c * unix/tclXtTest.c * win/tclWinTest.c
* added TIP#73 patch #483500 from Kevin Kenny.hobbs2001-11-211-2/+2
| | | | This deprecates TclpGetTime in favor of new Tcl_GetTime.
* Applied the patch for TIP #7 from Kevin Kenny.andreas_kupries2000-11-211-1/+78
| | | | See http://www.cs.man.ac.uk/fellowsd-bin/TIP/7.html
* * win/tclWinTest.c: added testvolumetype command, as atime ishobbs1999-10-291-4/+65
| | | | | completely ignored for Windows FAT file systems * win/tclWinPort.h: added sys/utime.h to includes
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-3/+2
|