summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
*-. merge trunk into dogeen-assembler-branchKevin B Kenny2011-03-029-58/+156
|\ \
| | * fix leaks in throw and unset compilersmig2011-03-011-0/+2
| | |
| | * This is [Patch 3168398], Joe Mistachkin's optimisation of Tip #285mig2011-03-018-52/+145
| | |
| | * * generic/tclExecute.c (ExprObjCallback): fix object leakmig2011-03-011-1/+0
| | |
| | * * generic/tclExecute.c (TEBCresume): store local var array and constants in ↵mig2011-03-011-2/+6
| |/ | | | | | | automatic vars to reduce indirection, slight perf increase
| |
| \
*-. \ merge trunkKevin B Kenny2011-03-015-41/+32
|\ \ \ | | |/
| | * fix typo in dkf's last commitmig2011-03-011-1/+1
| |/
| * remove unused variablesmig2011-03-011-2/+0
| |
| * * generic/tclBasic.c (TclNREvalObjv): dont do the trampoline dance for ↵mig2011-03-011-1/+10
| | | | | | | | commands that do not have an nreProc, [Patch 3168229]
| * Reorganization of call context reference count management so that codedkf2011-03-014-36/+20
| | | | | | is (mostly) simpler.
* | merge trunkKevin B Kenny2011-03-0160-206/+336
|\ \ | |/
| * Don't miss 64-bit address bits in panic message.nijtmans2011-01-251-3/+3
| |
| * [Enh #3159920]: Tcl_ObjPrintf() crashes with bad format specifier.nijtmans2011-01-193-11/+16
| |
| * Add missing commentdkf2011-01-181-2/+3
| |
| * * generic/tclOOMethod.c (PushMethodCallFrame): [Bug 3001438]: Makedkf2011-01-181-3/+35
| | | | | | | | | | | | | | sure that the cmdPtr field of the procPtr is correct and relevant at all times so that [info frame] can report sensible information about a frame after a return to it from a recursive call, instead of probably crashing (depending on what else has overwritten the Tcl stack!)
| * Various mismatches between Tcl_Panic format string and its arguments,nijtmans2011-01-187-25/+25
| | | | | | | | discovered thanks to [Bug 3159920]
| * [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-171-28/+28
| | | | | | | | Improved error-message regarding legacy form.
| * Removed code that suppressed zeroes in a context where zeroes cannot appear.Kevin B Kenny2011-01-151-6/+1
| |
| * * doc/tclvars.n:Kevin B Kenny2011-01-152-9/+77
| | | | | | | | | | | | | | | | | | | | * generic/tclStrToD.c: * generic/tclUtil.c (Tcl_PrintDouble): * tests/util.test (util-16.*): Restored full Tcl 8.4 compatibility for the formatting of floating point numbers when $::tcl_precision is not zero. Added compatibility tests to make sure that excess trailing zeroes are suppressed for all eight major code paths. [Bug 3157475]
| * fall back to assembler for VC++ 32-bitnijtmans2011-01-121-2/+4
| |
| * VS 2005 64-bit does not have intrin.h, and does not need it.nijtmans2011-01-121-7/+4
| |
| * * generic/tclCmdIL.c (SortElement): Use unions properly in thedkf2011-01-011-25/+28
| | | | | | | | | | | | 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.
| * * generic/tclExecute.c (GrowEvaluationStack): off-by-one error inMiguel Sofer2010-12-301-4/+4
| | | | | | | | | | | | 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-271-44/+48
| | | | | | | | options are used. Simplified memory handling logic.
| * Explicitely test for intrinsics support in compiler, before assuming only ↵nijtmans2010-12-201-5/+7
| | | | | | | | MSVC has it.
| * [Patch 3124554]: Move WishPanic from Tk to Tclnijtmans2010-12-161-1/+24
| | | | | | | | Better communication with debugger, if present.
| * Restore abort() in Tcl_Panic() as it was before.nijtmans2010-12-151-12/+1
| | | | | | | | [Patch 3124554] use ExitProcess() here, like in wish.
| * [Bug 3137454]: Tcl CVS HEAD does not build on GCC 3nijtmans2010-12-141-2/+2
| |
| * [Bug 3135271] Link error due to hidden symbols (CentOS 4.2)nijtmans2010-12-131-2/+2
| |
| * Use gcc's __builtin_trap(), when available, to enter the debugger after a panic.nijtmans2010-12-131-4/+10
| | | | | | | | Undocumented feature, see [Patch 3124554]: Move WishPanic from Tk to Tcl.
| * [Bug 3129448]: Possible over-allocation on 64-bit platforms, part 2nijtmans2010-12-107-26/+26
| |
| * Make sure [fcopy -size ... -command ...] always calls the callback ↵ferrieux2010-12-101-1/+38
| | | | | | | | asynchronously, even for size zero.
| * Change first parameter of TclSockMinimumBuffers to ClientData, and ↵nijtmans2010-12-104-18/+23
| | | | | | | | TclWin(Get|Set)SockOpt to SOCKET, because on Win64 those are 64-bit, which does not fit.
| * Fix gcc -Wextra warning: missing initializernijtmans2010-12-108-167/+168
| |
| * * generic/tclCmdAH.c (TclInitFileCmd, TclMakeFileCommandSafe, ...):dkf2010-12-096-735/+1613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * * generic/tclStrToD.c: Tidy up code so that more #ifdef-fery isdkf2010-12-071-1115/+1127
| | | | | | | | | | 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-063-21/+20
| |
| * * generic/tclUtil.c (TclReToGlob): add extra check for multiplehobbs2010-12-031-2/+14
| | | | | | | | | | 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-032-4/+9
| | | | | | | | | | | | 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-011-4/+11
| | | | | | | | | | | | | | | | 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-012-12/+9
| |
| * fix gcc 64-bit warnings: cast from pointer to integer of different sizenijtmans2010-12-015-22/+22
| | | | | | | | fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
| * * generic/tclInt.decls, generic/tclInt.h, generic/tclIntDecls.h:hobbs2010-11-305-25/+101
| | | | | | | | | | | | | | * 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).
| * Patch by Miguel, providing a [::tcl::unsupported::inject coroname command ↵ferrieux2010-11-291-2/+51
| | | | | | | | 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-289-404/+2711
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * Tcl_Panic already writes a newline at the end, so the caller doesn't have to ↵nijtmans2010-11-191-2/+2
| | | | | | | | do that
| * * generic/tclNamesp.c: fix leak due to bad looping construct,Miguel Sofer2010-11-181-3/+5
| | | | | | | | | | [Bug 3111059] (Correct fix this time around)
| * * generic/tclNamesp.c: fix leak due to bad looping construct,Miguel Sofer2010-11-181-5/+3
| | | | | | | | [Bug 3111059]
| * * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-154-17/+137
| | | | | | | | | | | | | | | | | | | | * doc/tclvars.n: Performance fix for TIP #280. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclInterp.c: * tests/info.test: * tests/interp.test: