summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* 2007-02-13 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2007-02-141-4/+4
| | | | | | | | * tools/fix_tommath_h.tcl: Further tweaking for the x86-64. The change is to make 'mp_digit' be an 'unsigned int' on that platform; since we're using only 32 bits of it, there's no reason to make it a 64-bit 'unsigned long.' * generic/tclTomMath.h: Regenerated.
* * tools/fix_tommath_h.tcl: Added code to patch out a check forKevin B Kenny2007-02-131-15/+5
| | | | | | | | | __x86_64__ that caused Tommath to use __attributes(TI)__ for the mp_word type. Tetra-int's simply fail on too many gcc-glibc-OS combinations to be ready for shipment today, even if they work for some of us. This change allows reversion of das's change of 2006-08-18 that accomplised the same thing on Darwin. * generic/tclTomMath.h: Regenerated.
* * generic/tclNamesp.c: Corrected broken logic in Tcl_DeleteNamespace()dgp2007-02-081-4/+4
| | | | | | * tests/namespace.test: introduced in Patch 1577278 that caused [namespace delete ::] to be effective only at level #0. New test namespace-7.7 should prevent similar error in the future. [Bug 1655305]
* Minor syntax/efficiency stuffdkf2007-02-061-22/+35
|
* Silence a trivial warningdkf2007-02-061-2/+3
|
* Function header/whitespace police/general format fixesdkf2007-02-063-847/+893
|
* * generic/tclNamesp.c: Corrected broken implementation of thedgp2007-02-061-2/+6
| | | | | * tests/namespace.test: TclMatchIsTrivial optimization on [namespace children $namespace $pattern].
* * generic/tclResult.c: Added optimization case to TclTransferResultdgp2007-01-291-5/+17
| | | | | to cover common case where there's big savings over the fully general path. Thanks to Peter MacDonald. [Bug 1626518].
* * generic/tclLink.c: Broken linked float logic corrected. Thanksdgp2007-01-291-2/+2
| | | | to Andy Goth [Bug 1602538].
* * macosx/Tcl.xcodeproj/project.pbxproj: extract build settings thatdas2007-01-281-4/+3
| | | | | | | | | | | | | | | | | | | * macosx/Tcl.xcodeproj/default.pbxuser: were common to multiple * macosx/Tcl-Common.xcconfig (new file): configurations into external * macosx/Tcl-Debug.xcconfig (new file): xcconfig files; add extra * macosx/Tcl-Release.xcconfig (new file): configurations for building with SDKs and 64bit; convert legacy jam-based 'Tcl' target to native target with single script phase; correct syntax of build setting references to use $() throughout. * macosx/README: document new Tcl.xcodeproj configurations; other minor updates/corrections. * generic/tcl.h: update location of version numbers in macosx files. * macosx/Tcl.xcode/project.pbxproj: restore 'tcltest' target to working * macosx/Tcl.xcode/default.pbxuser: order by replicating applicable changes to Tcl.xcodeproj since 2006-07-20.
* More efficient issuing of INST_START_CMD instructions. See ChangeLog for ↵dkf2007-01-192-9/+21
| | | | discussion
* Code style improvementsdkf2007-01-182-133/+148
|
* Fix minor fault (made by aku, caught by aku)dkf2007-01-181-2/+2
|
* Whitespace policing, and adding comments so that it is clearer what TclMarkList dkf2007-01-181-30/+61
| | | | was doing...
* Minor fix to make bytecodes print out properlydkf2007-01-181-2/+2
|
* Fix [Bug 1638414] and make bytecode of expansion betterdkf2007-01-181-71/+103
|
* Missed a spot; thanks to Andreas Kupries for spotting this one.dkf2007-01-171-5/+10
|
* Added macros to make usage of ChannelBuffers clearer.dkf2007-01-171-81/+128
|
* Arrange for RE engine workspace to be held in TSD. This is safe, lessdkf2007-01-104-8/+49
| | | | C-stack-hungry than before, and faster than just using heap allocation.
* Fix [lindex] argument ordering. [bug 1631364]dkf2007-01-091-9/+13
|
* Regenerated tclDate.cKevin B Kenny2007-01-031-18/+18
|
* * generic/tclIO.c (Tcl_GetsObj):mdejong2006-12-271-14/+20
| | | | | Avoid checking for for the LF in a possible CRLF sequence when EOF has already been found.
* * generic/tclEncoding.c (EscapeFromUtfProc):mdejong2006-12-271-3/+14
| | | | | | | | | | | Clear the TCL_ENCODING_END flag when end bytes are written. This fix keep this method from writing escape bytes for an encoding like iso2022-jp multiple times when the escape byte overlap with the end of the IO buffer. * tests/io.test: Add test for escape byte overlap issue.
* Reapplied the Engineering Manual-ification, but this time without the (small) dkf2006-12-141-295/+311
| | | | changes that caused crashes in the test suite.
* Revert the commits that broke the HEAD.dgp2006-12-131-307/+293
| | | | I'm not searching through >300 lines of changes to find the bad one.
* Silly mistake correcteddkf2006-12-131-3/+3
|
* Cleanup to follow engineering manual guidelinesdkf2006-12-133-552/+663
|
* * generic/tclCompExpr.c: Now that the new internal structsdgp2006-12-121-3/+3
| | | | | | | | | are in use to support operator commands, might as well make them the default for [expr] as well and avoid passing every parsed expression through the inefficient Tcl_Token array format. This addresses most issues in [RFE 1517602] Assuming no performance disasters result from this, much dead code supporting the other implementation might now be removed.
* * generic/tclBasic.c: Final step routing all direct evaluation formsdgp2006-12-124-35/+156
| | | | | | * generic/tclCompExpr.c: of the operator commands through TEBC, * generic/tclCompile.h: dropping all the routines in tclMathOp.c. * generic/tclMathOp.c: Still needs Engineering Manual attention.
* * generic/tclBasic.c: Another step with all sorting operator commandsdgp2006-12-113-9/+67
| | | | | * generic/tclCompExpr.c: now routing through TEBC via * generic/tclCompile.h: TclSortingOpCmd().
* * generic/tclBasic.c: Another step down the path of re-usingdgp2006-12-084-59/+110
| | | | | | | | * generic/tclCompExpr.c: TclExecuteByteCode to implement the TIP 174 * generic/tclCompile.h: commands instead of using a mass of code * generic/tclMathOp.c: duplication. Now all operator commands that * tests/mathop.test: demand exactly one operation are implemented via TclSingleOpCmd and a call to TEBC.
* * generic/tclCompExpr.c: Revised implementation of TclInvertOpCmddgp2006-12-084-31/+63
| | | | | | | | | | * generic/tclMathOp.c: to perform a bytecode compile / execute sequence. This demonstrates a path toward avoiding mountains of code duplication in tclMathOp.c and tclExecute.c. * generic/tclCompile.h: Change TclExecuteByteCode() from static to * generic/tclExecute.c: MODULE_SCOPE so all files including tclCompile.h may call it.
* * generic/tclMathOp.c: More revisions to make tests pass.dgp2006-12-081-3/+14
| | | | * tests/mathop.test:
* Fix [Bug 1571056] and silence a GCC warningdkf2006-12-081-2/+5
|
* * generic/tclCompCmds.c: Additional commits correct mostdgp2006-12-073-11/+79
| | | | | * generic/tclExecute.c: failing tests illustrating bugs uncovered * generic/tclMathOp.c: in [Path 1578137].
* Handle the export of the commands from tcl::mathop more efficientlydkf2006-12-071-3/+3
|
* * generic/tclBasic.c: Biggest source of TIP 174 failures was thatdgp2006-12-071-28/+33
| | | | | the commands were not [namespace export]ed from the ::tcl::mathop namespace. More bits from [Patch 1578137] correct that.
* More #174 bits and piecesdkf2006-12-072-411/+267
|
* More TIP 174 compilation bug fixes, consolidations, and improvements.dgp2006-12-061-93/+77
|
* * generic/tclCompCmds.c: Revised and consolidated into utilitydgp2006-12-061-113/+105
| | | | | * tests/mathop.c: routines some of routines that compile the new TIP 174 commands. This corrects some known bugs. More to come.
* * generic/tclBasic.c: TIP #291. Define tcl_platform element forandreas_kupries2006-12-051-1/+5
| | | | | | | | | | | | | | | | * doc/tclvars.n: pointerSize. * win/Makefile.in: Added installation instructions for the platform * win/makefile.vc: package. Added the platform package. * win/makefile.bc: * unix/Makefile.in: * tests/platform.test: * tests/safe.test: * library/platform/platform.tcl: * library/platform/shell.tcl: * library/platform/pkgIndex.tcl:
* * generic/tclPkg.c: When no requirements are supplied to adgp2006-12-051-1/+3
| | | | | | | | | | | | * tests/pkg.test: [package require $pkg] and [package unknown] is invoked to find a satisfying package, pass the requirement argument "0-" (which means all versions are acceptable). This permits a registered [package unknown] command to call [package vsatisfies $testVersion {*}$args] without any special handling of the empty $args case. This fixes/avoids a bug in [::tcl::tm::UnknownHandler] that was causing old TM versions to be provided in preference to newer TM versions. Thanks to Julian Noble for discovering the issue.
* Implement TIP#267dkf2006-12-041-9/+13
|
* * generic/tclCompExpr.c: Added implementation for thedgp2006-12-041-24/+260
| | | | | | | CompileExprTree() routine that can produce expression bytecode directly from internal structures with no need to pass through the Tcl_Token array representation. Still disabled by default. #undef USE_EXPR_TOKENS to try it out.
* * generic/tclCompExpr.c: Added expr parsing routines thatdgp2006-12-031-6/+1089
| | | | | | | | | | produce a different set of internal structures representing the parsed expression, as well as routines that go on to convert those structures into the traditional Tcl_Token array format. Use of these routines is currently disabled. #undef PARSE_DIRECT_EXPR_TOKENS to enable them. These routines will only become really useful when more routines that compile directly from the new internal structures are completed.
* fix warningdas2006-12-021-3/+4
|
* removed BZ_DIV_CUTOFF declaration now that it's gone from libtommathdas2006-12-021-4/+3
|
* TIP#299 IMPLEMENTATIONKevin B Kenny2006-12-011-1/+119
|
* TIP#287 IMPLEMENTATIONdgp2006-12-013-3/+78
| | | | | | | | | | * doc/chan.n: New subcommand [chan pending]. * generic/tclBasic.c: Thanks to Michael Cleverly for proposal * generic/tclInt.h: and implementation. * generic/tclIOCmd.c: * library/init.tcl: * tests/chan.test: * tests/ioCmd.test:
* TIP#298 IMPLEMENTATIONdgp2006-12-016-178/+50
| | | | | | | | | | | * generic/tcl.decls: Tcl_GetBignumAndClearObj -> Tcl_TakeBignumFromObj. * generic/tclObj.c: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclExecute.c: Update callers. * generic/tclMathOp.c: