summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
* bug #1923966 - crash in binary format. Added tests for the above crash ↵patthoyts2008-03-241-2/+2
| | | | condition.
* Oops, typo.dkf2008-03-201-2/+2
|
* Final clean up of the Tcl_GetMemoryInfo mess.dkf2008-03-202-29/+52
|
* fix typosdas2008-03-191-3/+3
|
* Added exported non-stub function Tcl_GetMemoryInfodkf2008-03-191-1/+4
|
* Corrected scoping of Tcl_GetMemoryInfo. [Bug 1868171]dkf2008-03-192-3/+9
|
* fix and simplify the OFFSET computation for TclStackAllocMiguel Sofer2008-03-181-5/+4
|
* * generic/tclExecute.c: Patch from Miguel Sofer to correct thedgp2008-03-181-11/+4
| | | | alignment of memory allocated by GrowEvaluationStack(). [Bug 1914503]
* Correct the handling of stack space calculation (the jump pattern used wasdkf2008-03-161-4/+5
| | | | confusing the simple-minded code doing the calculations). [Bug 1903325]
* * generic/tclBasic.c (OldMathFuncProc): Same workaround protectiondgp2008-03-141-7/+6
| | | | from bad TclStackAlloc() alignment. Thanks George Peter Staplin.
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): Use ckalloc() to allocatedgp2008-03-141-4/+3
| | | | | SortElement arrays instead of TclStackAlloc() which isn't getting alignment right. Workaround for [Bug 1914503].
* * generic/tclTest.c: Ignore the return value of write() whenrmax2008-03-141-3/+3
| | | | * unix/tclUnixPipe.c: we are about to exit anyways.
* missing char in error messagedgp2008-03-141-2/+2
|
* * generic/tclStrToD.c: Resolve identifier conflict over "pow10"dgp2008-03-131-9/+9
| | | | | with libm in Cygwin and DJGPP. Thanks to Gordon Schumacher and Philip Moore. [Patch 1800636]
* * generic/tclEncoding.c (LoadEscapeEncoding): avoid leaking escapedas2008-03-111-4/+9
| | | | | sub-encodings, fixes encoding-11.1 failing after iso2022-jp loaded (e.g. TESTFLAGS='-singleproc 1 -match "chan-io-1.8 encoding-11.1"').
* * generic/tclVar.c (TclDeleteNamespaceVars):Miguel Sofer2008-03-111-2/+8
| | | | | | | * tests/var.test (var-8.2): unset traces on vars should be called with a FQ named during namespace deletion. This was causing infinite loops when unset traces recreated the var, as reported by Julian Noble on [Bug 1911919].
* * generic/tclEvent.c (TclDefaultBgErrorHandlerObjCmd): Added errordgp2008-03-101-14/+41
| | | | | * tests/event.test (event-5.*): checking to protect against callers passing invalid return options dictionaries. [Bug 1901113]
* * generic/tclBasic.c (ExprAbsFunc): Revised so that the abs()dgp2008-03-101-3/+3
| | | | | | * tests/expr.test: function and the [::tcl::mathfunc::abs] command do not return the value of -0, or equivalent values with more alarming string reps like -1e-350. [Bug 1893815].
* typodgp2008-03-101-2/+2
|
* * generic/tclResult.c (ReleaseKeys): Workaround for [Bugandreas_kupries2008-03-071-1/+2
| | | | | | | | | | | | 1904907]. Reset the return option keys to NULL to allow full re-initialization by GetKeys(). This introduces a memory leak for the key objects, but gets us around a crash in the finalization of reflected channels when handling returns, either at compile- or runtime. In both cases we access the keys after they have been released by their thread exit handler. A proper fix is entangled with the untangling of the finalization ordering and attendant issues. For now we choose the lesser evil.
* commentary cleanupdgp2008-03-071-3/+3
|
* * generic/tclExecute.c (Tcl_ExprObj): Revised expression bytecodedgp2008-03-071-41/+107
| | | | | | compiling so that bytecodes invalid due to changing context or due to the difference between expressions and scripts are not reused. [Bug 1899164].
* * generic/tclCmdAH.c: Revised direct evaluation implementation ofdgp2008-03-071-6/+9
| | | | | [expr] so that [expr $e] caches compiled bytecodes for the expression as the intrep of $e.
* * generic/tclNamesp.c (GetNamespaceFromObj): spoil the intrep ofMiguel Sofer2008-03-021-6/+8
| | | | | an nsNameType obj when the reference crosses interpreter boundaries.
* * generic/tclResult.c (Tcl_SetReturnOptions): Revised the refcountdgp2008-02-292-2/+4
| | | | | | | | | | management of Tcl_SetReturnOptions to become that of a conventional Consumer routine. Thanks to Peter Spjuth for pointing out the difficulties calling Tcl_SetReturnOptions with non-0-count value for options. * generic/tclExecute.c (INST_RETURN_STK): Revised the one caller within Tcl itself which passes a non-0-count value to Tcl_SetReturnOptions().
* * generic/tclBasic.c (Tcl_AppendObjToErrorInfo): Revised thedgp2008-02-292-3/+3
| | | | | | | | | | refcount management of Tcl_AppendObjToErrorInfo to become that of a conventional Consumer routine. This preserves the ease of use for the overwhelming common callers who pass in a 0-count value, but makes the proper call with a non-0-count value less surprising. * generic/tclEvent.c (TclDefaultBgErrorHandlerObjCmd): Revised the one caller within Tcl itself which passes a non-0-count value to Tcl_AppendObjToErrorInfo().
* * generic/tclBasic.c (TclEvalObjvInternal): Plug memory leak whendgp2008-02-281-1/+4
| | | | | | an enter trace deletes or changes the command, prompting a reparsing. Don't let the second pass lose commandPtr value allocated during the first pass.
* * generic/tclCompExpr.c (ParseExpr): Plug memory leak in errordgp2008-02-281-3/+3
| | | | message generation.
* * generic/tclStringObj.c (Tcl_AppendFormatToObj): [format %llx $big]dgp2008-02-281-1/+4
| | | | leaked an mp_int.
* * generic/tclCompCmds.c (TclCompileReturnCmd): The 2007-10-18 commitdgp2008-02-281-1/+2
| | | | | to optimize compiled [return -level 0 $x] [RFE 1794073] introduced a memory leak of the return options dictionary. Fixing that.
* Remove dead/unused portability-related #defines and unused conditional code.jenglish2008-02-271-7/+2
| | | | See SF#1901828 for discussion and archaeological notes.
* * doc/clock.n: Corrected minor indentation gaffe in theKevin B Kenny2008-02-271-1/+13
| | | | | | | | | | | | penultimate paragraph. [Bug 1898025] * generic/tclClock.c (ParseClockFormatArgs): Changed to check that the clock value is in the range of a 64-bit integer. [Bug 1862555] * library/clock.tcl (::tcl::clock::format, ::tcl::clock::scan, ::tcl::clock::add, ::tcl::clock::LocalizeFormat): Fixed bugs in caching of localized strings that caused weird results when localized date/time formats were used. [Bug 1902423] * tests/clock.test (clock-61.*, clock-62.1): Regression tests for [Bug 1862555] and [Bug 1902423].
* fix warningdas2008-02-271-2/+2
|
* More stray trailing ","s.jenglish2008-02-262-4/+4
|
* Remove stray trailing "," from enum InstOperandType definition (C99ism).jenglish2008-02-261-2/+2
|
* * generic/tclUtil.c (TclReToGlob): fix the handling of the lasthobbs2008-02-261-4/+13
| | | | | * tests/regexpComp.test: star possibly being escaped in determining right anchor. [Bug 1902436]
* * generic/tcl.h: Bump version number to 8.5.2b1 to distinguishdgp2008-02-131-3/+3
| | | | | | | | | | | * library/init.tcl: CVS development snapshots from the 8.5.1 and * unix/configure.in: 8.5.2 releases. * unix/tcl.spec: * win/configure.in: * README * unix/configure: autoconf (2.59) * win/configure:
* Fix [Bug 1891827]dkf2008-02-121-5/+9
|
* * generic/tclClock.c (ClockParseformatargsObjCmd):Kevin B Kenny2008-02-061-5/+135
| | | | | | | | | | * library/clock.tcl (::tcl::clock::format): * tests/clock.test (clock-1.0, clock-1.4): Performance enhancements in [clock format] (moving the analysis of $args into C code, holding on to Tcl_Objs with resolved command names, [lassign] in place of [foreach], avoiding [namespace which] for command resolution).
* fix comments in INST_CONCATMiguel Sofer2008-02-041-5/+4
|
* * generic/tclExecute.c (INST_CONCAT1): fix optimisation forMiguel Sofer2008-02-041-3/+6
| | | | in-place concatenation (was going over String type)
* *** 8.5.1 TAGGED FOR RELEASE ***dgp2008-02-041-2/+2
| | | | | | | | | | | | * generic/tcl.h: Bump to 8.5.1 for release. * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
* * generic/tclInterp.c (Tcl_GetAlias): fix for [Bug 1882373]Miguel Sofer2008-01-301-2/+2
|
* Reconcile coding style issues between branchesdgp2008-01-231-7/+9
|
* Reconcile coding style issues between branchesdgp2008-01-231-4/+4
|
* Reconcile coding style issues between branchesdgp2008-01-235-59/+60
|
* * generic/tclInt.h: New macro TclGrowParseTokenArray() todgp2008-01-234-105/+83
| | | | | | | | | | | | | | * generic/tclCompCmds.c: simplify code that might need to grow * generic/tclCompExpr.c: an array of Tcl_Tokens in the parsePtr * generic/tclParse.c: field of a Tcl_Parse. Replaces the TclExpandTokenArray() routine via replacing: int needed = parsePtr->numTokens + growth; while (needed > parsePtr->tokensAvailable) { TclExpandTokenArray(parsePtr); } with: TclGrowParseTokenArray(parsePtr, growth); This revision merged over from dgp-refactor branch.
* * generic/tclCompile.h: Demote TclCompEvalObj() from internal stubs todgp2008-01-234-26/+15
| | | | | | | * generic/tclInt.decls: a MODULE_SCOPE routine declared in tclCompile.h. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c:
* * generic/tclTimer.c (AfterProc): Replace Tcl_EvalEx() withdgp2008-01-221-9/+1
| | | | | Tcl_EvalObjEx() to evaluate [after] callbacks. Part of trend to favor compiled execution over direct evaluation.
* * generic/tclCmdIl.c (Tcl_LreverseObjCmd):Miguel Sofer2008-01-221-1/+10
| | | | | * tests/cmdIL.test (cmdIL-7.7): fix crash on reversing an empty list [Bug 1876793].