summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * tests/util.test (util-15.*): Added test cases for floating pointKevin B Kenny2011-01-072-1/+97
| | | | | | | conversion of the largest denormal and the smallest normal number, to avoid any possibility of the failure suffered by PHP in the last couple of days. (They didn't fail, so no actual functional change.)
* * tests/package.test, tests/pkg.test: Coalesce these tests into onedkf2011-01-065-1455/+1435
| | | | | | | file that is concerned with the package system. Convert to use tcltest2 properly. * tests/autoMkindex.test, tests/pkgMkIndex.test: Convert to use tcltest2 properly.
* Clean up of tests and conversion to tcltest 2. Target has been to get init anddkf2011-01-0121-699/+713
| | | | cleanup code out of the test body and into the -setup/-cleanup stanzas.
* * tests/execute.test (execute-11.1): [Bug 3142026]: Added test thatdkf2011-01-012-94/+129
| | | | fails (with a crash) in an unfixed memdebug build on 64-bit systems.
* * generic/tclCmdIL.c (SortElement): Use unions properly in thedkf2011-01-012-31/+41
| | | | | | definition of this structure so that there is no need to use nasty int/pointer type punning. Made it clearer what the purposes of the various parts of the structure are.
* Fix [Bug 3148192]: [load] broken. Assure that those files are never compiled ↵nijtmans2010-12-317-6/+17
| | | | with -DSTATIC_BUILD
* * generic/tclExecute.c (GrowEvaluationStack): off-by-one error inMiguel Sofer2010-12-302-4/+11
| | | | | | sizing the new allocation - was ok in comment but wrong in the code. Triggered by [Bug 3142026] which happened to require exactly one more than what was in existence.
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): Fix crash when multiple -indexdkf2010-12-273-63/+79
| | | | options are used. Simplified memory handling logic.
* [Patch 3059922]: fixes for mingw64 - gcc4.5.1 tdm64-1: completed for all ↵nijtmans2010-12-212-3/+23
| | | | environments.
* cannot use '['/']' in configure.in, or re-generation will go wrongnijtmans2010-12-212-5/+3
|
* fix cpuid determinationnijtmans2010-12-202-4/+4
|
* Explicitely test for intrinsics support in compiler, before assuming only ↵nijtmans2010-12-204-6/+111
| | | | MSVC has it.
* [Patch3059922]: fixes for mingw64 - gcc4.5.1 tdm64-1:nijtmans2010-12-191-1/+1
| | | | Fixed for gcc, not yet for MSVC 64-bit.
* [Patch 3124554]: fixes for mingw64 - gcc4.5.1 tdm64-1:nijtmans2010-12-192-5/+41
| | | | Fixed for gcc, not yet for MSVC 64-bit.
* Remove unwanted/obsolete 'ddd' target.stwo2010-12-172-7/+6
|
* Clean up '.PHONY:' targets: Arrange those common to Tcl and Tk as in Tk's ↵stwo2010-12-172-9/+17
| | | | Makefile.in, add any missing ones and remove duplicates.
* [Bug 2446711]: Remove 'allpatch' target.stwo2010-12-172-24/+6
|
* Use 'rpmbuild', not 'rpm' [Bug 2537626].stwo2010-12-172-3/+7
|
* [Patch 3124554]: Move WishPanic from Tk to Tclnijtmans2010-12-163-16/+42
| | | | Better communication with debugger, if present.
* Restore abort() in Tcl_Panic() as it was before.nijtmans2010-12-153-16/+16
| | | | [Patch 3124554] use ExitProcess() here, like in wish.
* [Bug 3137454]: Tcl CVS HEAD does not build on GCC 3nijtmans2010-12-142-2/+6
|
* * win/tclWinSock.c (CreateSocket): Swap the loops overrmax2010-12-143-24/+32
| | | | | | | * unix/tclUnixSock.c (CreateClientSocket): local and remote addresses, so that the system's address preference for the remote side decides which family gets tried first. Cleanup and clarify some of the comments.
* [Bug 3135271] Link error due to hidden symbols (CentOS 4.2)nijtmans2010-12-134-2/+11
|
* Use gcc's __builtin_trap(), when available, to enter the debugger after a panic.nijtmans2010-12-133-8/+66
| | | | Undocumented feature, see [Patch 3124554]: Move WishPanic from Tk to Tcl.
* Better building on OpenBSD.stwo2010-12-123-26/+71
|
* [Bug 3129448]: Possible over-allocation on 64-bit platforms, part 2nijtmans2010-12-108-26/+36
|
* Make sure [fcopy -size ... -command ...] always calls the callback ↵ferrieux2010-12-103-2/+82
| | | | asynchronously, even for size zero.
* Change first parameter of TclSockMinimumBuffers to ClientData, and ↵nijtmans2010-12-1010-36/+358
| | | | TclWin(Get|Set)SockOpt to SOCKET, because on Win64 those are 64-bit, which does not fit.
* Fix gcc -Wextra warning: missing initializernijtmans2010-12-109-167/+179
|
* * tests/fCmd.test: Improve sanity of constraints now that we don'tdkf2010-12-092-22/+42
| | | | support anything before Windows 2000.
* * generic/tclCmdAH.c (TclInitFileCmd, TclMakeFileCommandSafe, ...):dkf2010-12-0911-930/+1799
| | | | | | | | | | | | | | | | | | Break up [file] into an ensemble. Note that the ensemble is safe in itself, but the majority of its subcommands are not. * generic/tclFCmd.c (FileCopyRename,TclFileDeleteCmd,TclFileAttrsCmd) (TclFileMakeDirsCmd): Adjust these subcommand implementations to work inside an ensemble. (TclFileLinkCmd, TclFileReadLinkCmd, TclFileTemporaryCmd): Move these subcommand implementations from tclCmdAH.c, where they didn't really belong. * generic/tclIOCmd.c (TclChannelNamesCmd): Move to more appropriate source file. * generic/tclEnsemble.c (TclMakeEnsemble): Start of code to make partially-safe ensembles. Currently does not function as expected due to various shortcomings in how safe interpreters are constructed. * tests/cmdAH.test, tests/fCmd.test, tests/interp.test: Test updates to take into account systematization of error messages.
* * tests/append.test, tests/appendComp.test: Clean up tests so thatdkf2010-12-093-108/+131
| | | | | they don't leave things in the global environment (detected when doing -singleproc testing).
* * tests/fCmd.test, tests/safe.test, tests/uplevel.test,dkf2010-12-076-348/+363
| | | | | * tests/upvar.test, tests/var.test: Convert more tests to tcltest2 and factor them to be easier to understand.
* * generic/tclStrToD.c: Tidy up code so that more #ifdef-fery isdkf2010-12-072-1160/+1178
| | | | | quarantined at the front of the file and function headers follow the modern Tcl style.
* [Bug 3129448]: possible over-allocation on 64-bit platformsnijtmans2010-12-064-21/+26
|
* [Patch #3116490] cross-compile support for unixnijtmans2010-12-051-1/+1
|
* [Patch #3116490] cross-compile support for unixnijtmans2010-12-053-14/+51
|
* * generic/tclUtil.c (TclReToGlob): add extra check for multiplehobbs2010-12-032-6/+24
| | | | | inner *s that leads to poor recursive glob matching, defer to original RE instead. tclbench RE var backtrack.
* silence gcc warning when using -Wwrite-stringsnijtmans2010-12-037-24/+54
| | | | | | silence gcc warning for non-IEEE platforms [Patch #3116490] cross-compile Tcl mingw32 on unix. This makes it possible to cross-compile Tcl/Tk for Windows (either 32-bit or 64-bit) out-of-the-box on UNIX, using mingw-w64 build tools.
* * generic/tclStrToD.c (SetPrecisionLimits, TclDoubleDigits):Kevin B Kenny2010-12-012-4/+20
| | | | | | | | Added meaningless initialization of 'i', 'ilim' and 'ilim1' to silence warnings from the C compiler about possible use of uninitialized variables, Added a panic to the 'switch' that assigns them, to assert that the 'default' case is impossible. [Bug 3124675]
* Allow Tcl_Panic() to enter the debugger on win32nijtmans2010-12-013-13/+11
|
* fix gcc 64-bit warnings: cast from pointer to integer of different sizenijtmans2010-12-016-22/+32
| | | | fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
* * generic/tclInt.decls, generic/tclInt.h, generic/tclIntDecls.h:hobbs2010-11-306-25/+109
| | | | | | | * generic/tclStubInit.c: TclFormatInt restored at slot 24 * generic/tclUtil.c (TclFormatInt): restore TclFormatInt func from 2005-07-05 macro-ization. Benchmarks indicate it is faster, as a key int->string routine (e.g. int-indexed arrays).
* ChangeLog typo.ferrieux2010-11-291-1/+1
|
* Patch by Miguel, providing a [::tcl::unsupported::inject coroname command ↵ferrieux2010-11-292-2/+58
| | | | args], which prepends ("injects") arbitrary code to a suspented coro's future resumption. Neat for debugging complex coros without heavy instrumentation.
* added missing casts that MSVC complained about and deleted unused variableKevin B Kenny2010-11-292-7/+6
|
* 2010-11-29 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2010-11-2814-410/+3559
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclInt.h: * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them.
* * tests/chanio.test, tests/iogt.test, tests/ioTrans.test: Convert moredkf2010-11-244-1303/+1378
| | | | tests to tcltest2 and factor them to be easier to understand.
* More conversion of tcltest1 tests to tcltest2dkf2010-11-211-483/+521
|
* * tests/chanio.test: Converted many tests to tcltest2 by marking thedkf2010-11-202-1172/+1333
| | | | setup and cleanup parts as such.