summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 3129448]: Possible over-allocation on 64-bit platforms, part 2,nijtmans2011-01-253-27/+29
| | | | backported strcpy->memcpy change but not change in any struct.
* Make sure to use CONST/VOID in stead ofnijtmans2011-01-191-5/+5
| | | | | | const/void when appropriate. This allows to use const/void in the *.decls file always, genStubs will do the right thing.
* Backport of Miguel's 2010-09-22 fix on 8.6 branch (decache stack info ↵ferrieux2011-01-191-1/+39
| | | | wherever ::errorInfo may be updated, for trace sanity). [Bug 3138178]
* Make sure to use CONST/VOID in stead ofnijtmans2011-01-193-13/+13
| | | | | | const/void when appropriate. This allows to use const/void in the *.decls file always, genStubs will do the right thing.
* Various mismatches between Tcl_Panic format string and its arguments,nijtmans2011-01-185-37/+37
| | | | discovered thanks to [Bug 3159920]
* [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-171-27/+23
| | | | Improved error-message regarding legacy form.
* * doc/tclvars.n:Kevin B Kenny2011-01-152-46/+110
| | | | | | | | | | * 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]
* * generic/tclExecute.c (GrowEvaluationStack): Off-by-one error inMiguel Sofer2011-01-131-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. BACKPORT.
* [Bug 3007895]: Tcl_(Find|Create)HashEntry stub entries can never be called.nijtmans2010-12-311-4/+25
| | | | | | They still cannot be called (no change in functionality), but at least they now do exactly the same as the Tcl_(Find|Create)HashEntry macro's, so the confusion addressed in this Bug report is gone. (Backported from Tcl 8.6)
* [backport] Make sure [fcopy -size ... -command ...] always calls the ↵ferrieux2010-12-101-1/+38
| | | | callback asynchronously, even for size zero.
* * 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.
* Whitespace, and fix broken backport of ilimi* initialization.andreas_kupries2010-12-011-66/+66
|
* * 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]
* * generic/tclInt.decls: Backport of Kevin B. Kenny's work onandreas_kupries2010-11-3010-380/+2724
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: the Tcl Head, with help from Jeff Hobbs. * 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. * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclTomMathDecls.h: Regenerated.
* * generic/tclInt.decls, generic/tclInt.h, generic/tclIntDecls.h:hobbs2010-11-305-24/+106
| | | | | | | * 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).
* * generic/tclVar.c (VarHashInvalidateEntry): Removed obsoleteandreas_kupries2010-11-231-12/+1
| | | | | | patch for AIX defining this macro as function. This is not necessary anymore. See ChangeLog entry 2010-07-28 (Bug 3037525) for the actual bug and fix the patch was a workaround for.
* fix gcc warning: passing argument 3 of 'Tcl_GetIndexFromObj' discards ↵nijtmans2010-11-191-2/+2
| | | | qualifiers from pointer target type
* [Bug #3110161]: Extensions using TCHAR don't compile on VS2005 SP1nijtmans2010-11-161-1/+5
|
* * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-154-12/+132
| | | | | | | | | | * 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:
* Backport dgp's fixes to comments and ChangeLog entryKevin B Kenny2010-11-051-2/+2
|
* * generic/tclCompCmds.c (TclCompileCatchCmd):Kevin B Kenny2010-11-031-70/+113
| | | | | | | | | | * tests/compile.test (compile-3,6): Reworked the compilation of the [catch] command so as to avoid placing any code that might throw an exception (specifically, any initial substitutions or any stores to result or options variables) between the BEGIN_CATCH and END_CATCH but outside the exception range. Added a test case that panics on a stack smash if the change is not made. [Bug #3098302]
* [Bug 3085863]: tclUniData 9 years oldnijtmans2010-10-233-1018/+1049
| | | | Upgrade everything to Unicode 6.0, except non-BMP characters > 0xFFFF
* * generic/tclExecute.c: fix overallocation of exec stack in TEBCMiguel Sofer2010-10-091-3/+3
| | | | (mixing numwords and numbytes)
* correct evalstats to use %#lx for %p for Tcl_AppendPrintfToObjhobbs2010-10-041-2/+2
|
* * generic/tclExecute.c (EvalStatsCmd): change 'evalstats' tohobbs2010-10-024-119/+149
| | | | | | | | | return data to interp by default, or if given an arg, use that as filename to output to (accepts 'stdout' and 'stderr'). Fix output to print used inst count data. * generic/tclCkalloc.c: change TclDumpMemoryInfo sig to allow * generic/tclInt.decls: objPtr as well as FILE* as output. * generic/tclIntDecls.h:
* * generic/tclCmdAH.c: Fix cases where value returned bydgp2010-09-233-3/+6
| | | | | | * generic/tclEvent.c: Tcl_GetReturnOptions() was leaked. * generic/tclMain.c: Thanks to Jeff Hobbs for discovery of the anti-pattern to seek and destroy.
* Backport blkcnt_t detection/usage.stwo2010-09-061-1/+5
|
* * generic/tclExecute.c: [Bug 3057639]. Applied patch by Jeff toandreas_kupries2010-09-012-10/+12
| | | | | | | * generic/tclVar.c: make the behaviour of lappend in bytecompiled * tests/append.test: mode consistent with direct-eval and 'append' * tests/appendComp.test: generally. Added tests (append*-9.*) showing the difference.
* * generic/tclTrace.c (TraceExecutionObjCmd, TraceCommandObjCmd)dkf2010-08-191-4/+4
| | | | | | (TraceVariableObjCmd): [Patch 3048354]: Use memcpy() instead of strcpy() to avoid buffer overflow; we have the correct length of data to copy anyway since we've just allocated the target buffer.
* * generic/tclProc.c (ProcWrongNumArgs): [Bug 3045010]: Make thedkf2010-08-151-5/+7
| | | | | handling of passing the wrong number of arguments to [apply] somewhat less verbose when a lambda term is present.
* * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): [Bug 2826551, Patch 2948425]:dkf2010-08-121-19/+27
| | | | Backport of updates to make handling of RE line anchors correct.
* * generic/tclUtil.c (TclByteArrayMatch): patterns may not behobbs2010-08-101-2/+2
| | | | null-terminated, so account for that.
* * generic/tcl.h: Bump to 8.5.9 for release.dgp2010-08-041-3/+3
| | | | | | | | | | | | | | * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * README: * unix/configure: autoconf-2.59 * win/configure: * changes: Update for 8.5.9 release.
* * generic/tclIORChan.c: [Bug 3034840]: Fixed reference countingandreas_kupries2010-08-041-24/+63
| | | | * tests/ioCmd.test: in InvokeTclMethod and callers.
* * generic/tclVar.c: fix for crash [Bug 3037525]: lose fickleMiguel Sofer2010-07-311-7/+3
| | | | optimisation in TclDeleteVars (used for runtime-created locals)
* [Bug 3030870] make itcl 3.x built with pre-8.6 work in 8.6:nijtmans2010-07-252-5/+4
| | | | revert tclInt.h to what it was before, and relax the relation between Tcl_CallFrame and CallFrame.
* [Bug 3030870] make itcl 3.x built with pre-8.6 work in 8.6nijtmans2010-07-172-10/+12
|
* * generic/tclExecute.c (IllegalExprOperandType): [Bug 3024379]: Madedkf2010-07-021-1/+2
| | | | | | sure that errors caused by an argument to an operator being outside the domain of the operator all result in ::errorCode being ARITH DOMAIN and not NONE.
* [Bug #803489] Tcl_FindNamespace problem in the Stubs tablenijtmans2010-07-021-1/+16
|
* [Bug 3019634] errno.h and tclWinPort.h have conflicting definitions.nijtmans2010-06-281-4/+4
|
* [Bug 3019634] errno.h and tclWinPort.h have conflicting definitions.nijtmans2010-06-241-11/+11
|
* * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrongdkf2010-06-221-2/+2
| | | | args message.
* [Bug 2991415]: tclport.h #included before limits.hnijtmans2010-05-251-7/+2
|
* [Bug #3005233] fix for build on OpenBSD vaxnijtmans2010-05-211-6/+8
|
* installData.tcl: Make sure that copyDir only receives normalized paths.nijtmans2010-05-213-33/+40
| | | | | | tclPlatDecls.h: Fix <tchar.h> inclusion for CYGWIN. tclPathObj.c: Fix Tcl_SetStringObj usage for CYGWIN. *.c: Fix various minor other gcc warnings, like signed<->unsigned mismatch.
* Backport of fix for [Bug 3004007], EIAS violation in list-dict conversions.ferrieux2010-05-191-3/+5
|
* Backport of fix for [Bug 3004007], EIAS violation in list-dict conversions.ferrieux2010-05-191-1/+9
|
* * generic/tclBinary.c (UpdateStringOfByteArray): Add panicdgp2010-04-301-2/+5
| | | | | when the generated string representation would grow beyond Tcl's size limits. [Bug 2994924]
* Reverted previous checin as Tcl_ObjSetVar2 (convoluted and undocumented)vasiljevic2010-04-061-2/+1
| | | | | jnterface implicitly decrements refcount of the passed result object when the passed result object refcount was already zero.
* Fixed object leakvasiljevic2010-04-061-1/+2
|