summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
* 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].
* * generic/tclIO.c (TclGetsObjBinary): operate on topmost channel.hobbs2008-01-201-7/+13
| | | | [Bug 1869405] (Ficicchia)
* * generic/tclCompExpr.c: Revision to preserve parsed intrepsdgp2008-01-171-5/+42
| | | | | of numeric and boolean literals when compiling expressions with (optimize == 1).
* * generic/tclCompExpr.c: add an 'optimize' argument toMiguel Sofer2008-01-164-16/+10
| | | | | | * generic/tclCompile.c: TclCompileExpr() to profit from better * generic/tclCompile.h: literal management according to usage. * generic/tclExecute.c:
* * generic/tclCompExpr.c: Fix literal leak in exprs [Bug 1869989]Miguel Sofer2008-01-162-41/+29
| | | | * generic/tclExecute.c: (dgp)
* * generic/tclBasic.c: Replacing 'operator' by 'op' in the defMiguel Sofer2008-01-153-9/+8
| | | | | * generic/tclCompExpr.c: of struct TclOpCmdClientData to * generic/tclCompile.h: accomodate C++ compilers [Bug 1855644]
* * generic/tclStringObj.c (Tcl_AppendFormatToObj): Correct failure todgp2008-01-101-4/+4
| | | | | * tests/format.test: account for big.used == 0 corner case in the %ll(idox) format directives. [Bug 1867855].
* * generic/tcl.h: Bump version number to 8.5.1b1 to distinguishdgp2008-01-021-3/+3
| | | | | | | | | | | * library/init.tcl: CVS development snapshots from the 8.5.0 and * unix/configure.in: 8.5.1 releases. * unix/tcl.spec: * win/configure.in: * README * unix/configure: autoconf (2.59) * win/configure:
* * generic/tclCmdIL.c: more [lsort] data handling streamlines. TheMiguel Sofer2007-12-261-137/+108
| | | | | | | | function MergeSort is gone, essentially inlined into Tcl_LsortObjCmd. It is not a straight inlining, two loops over all lists elements where merged in the process: the linked list elements are now built and merged into the temporary sublists in the same pass.
* * generic/tclCmdIL.c: more [lsort] data handling streamlines.Miguel Sofer2007-12-251-51/+63
| | | | | | Extra mem reqs of latest patches removed, restored to previous mem profile. Improved -unique handling, now eliminating repeated elems immediately instead of marking them to avoid reinsertion at the end.
* * generic/tclCompCmds.c (TclCompileRegexpCmd): TCL_REG_NOSUB cannothobbs2007-12-231-6/+5
| | | | | * tests/regexp.test (regexp-22.2): be used because it * tests/regexpComp.test: [Bug 1857126] disallows backrefs.
* * generic/tclCmdIL.c: speed patch for lsort [Patch 1856994].Miguel Sofer2007-12-231-41/+109
|
* * generic/tclCmdIL.c (Tcl_LsortObjCmd, Tcl_LsearchObjCmd): avoidMiguel Sofer2007-12-221-23/+36
| | | | calling SelectObjFromSublist when there are no sublists.
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): preallocate a listObj ofMiguel Sofer2007-12-221-12/+24
| | | | | | sufficient length for the sorted list instead of growing it. Second commit replaces calls to Tcl_ListObjAppenElement with direct access to the internal rep.
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): preallocate a listObj ofMiguel Sofer2007-12-221-2/+2
| | | | sufficient length for the sorted list instead of growing it.
* * generic/tclCompCmds.c (TclCompileSwitchCmd): update switch -regexphobbs2007-12-191-2/+14
| | | | | | * tests/switch.test-14.*: compilation to pass the cflags to INST_REGEXP (changed on 12-07). Added tests for switch -regexp compilation (need more). [Bug 1854399]
* Fixes for problems created when processing regular expressions thatdkf2007-12-185-15/+101
| | | | | | | generate very large automata. An enormous number of thanks to Will Drewry <wad@google.com>, Tavis Ormandy <taviso@google.com>, and Tom Lane <tgl@sss.pgh.pa.us> from the Postgresql crowd for their help in tracking these problems down. [Bug 1810264]
* * generic/tclAlloc.c:Miguel Sofer2007-12-174-48/+79
| | | | | | | | * generic/tclExecute.c: * generic/tclInt.h: * generic/tclThreadAlloc.c: Fix alignment for memory returned by TclStackAlloc; insure that all memory allocators align to 16-byte boundaries on 64 bit platforms [Bug 1851832, 1851524]
* * generic/tclIOUtil.c (FsAddMountsToGlobResult): fix the tailhobbs2007-12-141-6/+7
| | | | conversion of vfs mounts. [Bug 1602539]
* merge stable branch onto HEADdgp2007-12-1370-73/+73
|
* * generic/tclUtil.c (TclReToGlob): reduce escapes in conversionhobbs2007-12-111-6/+8
| | | | when not necessary
* * generic/tclInt.decls: move TclByteArrayMatch and TclReToGlobhobbs2007-12-119-83/+95
| | | | | | | | | | | | | * generic/tclIntDecls.h: to tclInt.h from stubs. * generic/tclStubInit.c: Add flags var to TclByteArrayMatch for * generic/tclInt.h: future extensibility * generic/tcl.h: define TCL_MATCH_EXACT doc for Tcl_StringCaseMatch. * doc/StrMatch.3: It is compatible with existing usage. * generic/tclExecute.c (INST_STR_MATCH): flag for TclByteArrayMatch * generic/tclUtil.c (TclByteArrayMatch, TclStringMatchObj): * generic/tclRegexp.c (Tcl_RegExpExecObj): * generic/tclCmdMZ.c (StringMatchCmd): Use TclStringMatchObj * tests/string.test (11.9.* 11.10.*): more tests
* * generic/tclDecls.h: regen with new genStubs.tcl.das2007-12-105-137/+483
| | | | | | | * generic/tclIntDecls.h: [Bug 1834288] * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclStubInit.c:
* * generic/tcl.decls: use new genstubs 'export' command todas2007-12-103-122/+133
| | | | | | * generic/tclInt.decls: mark exported symbols not in stubs * generic/tclTomMath.decls: table [Tk FR 1716117]; cleanup formatting.
* make tclChannelType static (fix 'make checkstubs')das2007-12-101-2/+2
|
* * tests/io.test, tests/chanio.test (io-73.1): Make sure to invalidatehobbs2007-12-091-6/+8
| | | | | * generic/tclIO.c (SetChannelFromAny): internal rep only after validating channel rep. [Bug 1847044]
* Match docs and reality. [Bug 1662436]dkf2007-12-081-2/+2
|
* * generic/tclExecute.c (TclExecuteByteCode INST_REGEXP):hobbs2007-12-072-10/+13
| | | | | * generic/tclCompCmds.c (TclCompileRegexpCmd): Pass correct RE compile flags at compile time, and use TCL_REG_NOSUB.
* * generic/tclExecute.c (TclExecuteByteCode INST_REGEXP): Usehobbs2007-12-071-2/+5
| | | | TCL_REG_NOSUB as we come here without capture vars.
* * generic/tclIOCmd.c (FinalizeIOCmdTSD, Tcl_PutsObjCmd): cachehobbs2007-12-071-18/+59
| | | | stdout channel object for [puts $str] calls.
* (TclMatchIsTrivial): simplify TclMatchIsTrivial to remove ] checkhobbs2007-12-061-2/+2
|
* add TclGetChannelFromObj declhobbs2007-12-061-1/+4
|
* Oops!dkf2007-12-061-2/+2
|
* Simplify code for setting up the [chan] ensemble now that we can leveragedkf2007-12-063-352/+403
| | | | TclMakeEnsemble to do most of the work.
* Fix [Bug 1845320] and [Bug 1845397]dkf2007-12-062-9/+13
|
* * generic/tclIO.h: Create Tcl_Obj for Tcl channels to reducehobbs2007-12-053-116/+344
| | | | | | | * generic/tclIO.c: overhead in lookup by Tcl_GetChannel. New * generic/tclIOCmd.c: TclGetChannelFromObj for internal use. * generic/tclIO.c (WriteBytes, WriteChars): add opt check to avoid EOL translation when not linebuffered or using lf. [Bug 1845092]
* Prevent shimmering crash in [lsearch] when -exact and -integer/-real are mixed.dkf2007-12-051-1/+15
| | | | [Bug 1844789]
* Make two-arg switch work reliably (and actually as documented!) [Bug 1836519]dkf2007-12-032-49/+77
|
* Silence syntax warning by Sun C compiler. [Bug 1840211]dkf2007-12-011-2/+2
|
* * generic/tclConfig.c: Corrected failure of the [::foo::pkgconfig]dgp2007-11-281-10/+27
| | | | | command to clean up registered configuration data when the query command is deleted from the interp. [Bug 983501].