summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclEvent.c ([::tcl::Bgerror]): Corrections to Tcl'sdgp2007-09-073-14/+74
| | | | | | * tests/event.test: default [interp bgerror] handler so that when it falls back to a hidden [bgerror] in a safe interp, it gets the right error context data. [Bug 1790274].
* * generic/tclProc.c (TclInitCompiledLocals): the refCount ofMiguel Sofer2007-09-072-2/+10
| | | | | resolved variables was being managed without checking if they were Var or VarInHash: itcl [Bug 1790184]
* * generic/tclResult.c (Tcl_GetReturnOptions): Take care that adgp2007-09-074-35/+37
| | | | | | | | * tests/init.test: non-TCL_ERROR code doesn't cause existing -errorinfo, -errorcode, and -errorline entries to be omitted. * generic/tclEvent.c: With -errorInfo no longer lost, generate more complete ::errorInfo when calling [bgerror] after a non-TCL_ERROR background exception.
* header cleanupdgp2007-09-072-4/+3
|
* * generic/tclInterp.c (Tcl_Init): Removed constraint on abilitydgp2007-09-062-3/+7
| | | | | to define a custom [tclInit] before calling Tcl_Init(). Until now the custom command had to be a proc. Now it can be any command.
* * generic/tclInt.decls: New internal routine TclBackgroundException()dgp2007-09-069-41/+135
| | | | | | | | | | | | | | | | * generic/tclEvent.c: that for the first time permits non-TCL_ERROR exceptions to trigger [interp bgerror] handling. Closes a gap in TIP 221. When falling back to [bgerror] (which is designed only to handle TCL_ERROR), convert exceptions into errors complaining about the exception. * generic/tclInterp.c: Convert Tcl_BackgroundError() callers to call * generic/tclIO.c: TclBackgroundException(). * generic/tclIOCmd.c: * generic/tclTimer.c: * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c:
* typodas2007-09-061-2/+2
|
* * macosx/Tcl.xcode/project.pbxproj: discontinue unmaintained supportdas2007-09-067-127/+77
| | | | | | | | | | | | | * macosx/Tcl.xcode/default.pbxuser: for Xcode 1.5; replace by Xcode2 project for use on Tiger (with Tcl.xcodeproj to be used on Leopard). * macosx/Tcl.xcodeproj/project.pbxproj: updates for Xcode 2.5 and 3.0. * macosx/Tcl.xcodeproj/default.pbxuser: * macosx/Tcl.xcode/project.pbxproj: * macosx/Tcl.xcode/default.pbxuser: * macosx/Tcl-Common.xcconfig: * macosx/README: document project changes.
* discontinue support for Xcode 1.5 (project was no longer being maintained); ↵das2007-09-062-7845/+2561
| | | | make identical to current Tcl.xcodeproj.
* replace (ab)use of GENERIC_FLAGS as a unix/Makefile override by dedicated ↵das2007-09-062-7/+7
| | | | EXTRA_CFLAGS var
* * generic/tclBasic.c: Removed support for the unmaintaineddgp2007-09-054-43/+18
| | | | | * generic/tclExecute.c: -DTCL_GENERIC_ONLY configuration. [Bug 1264623] * unix/Makefile.in:
* correct autoconf/autoheader dependenciesdas2007-09-051-9/+8
|
* fix building on Pantherdas2007-09-051-1/+2
|
* * unix/Makefile.in: It's unreliable to count on the releasedgp2007-09-042-2/+6
| | | | | manager to remember to `make genstubs` before `make dist`. Let the Makefile remember the dependency for us.
* * unix/Makefile.in: Corrections to `make dist` dependencies to bedgp2007-09-041-2/+2
| | | | sure that macosx/configure gets generated whenever it does not exist.
* * unix/Makefile.in: Corrections to `make dist` dependencies to bedgp2007-09-042-3/+10
| | | | sure that macosx/configure gets generated whenever it does not exist.
* * tests/lindex.test (lindex-17.[01]): Added code to detect theKevin B Kenny2007-09-033-3/+38
| | | | | | error when a script does [lindex {} end foo]; an overaggressive optimisation caused this call to return an empty object rather than an error.
* Olson's tzdata2007gKevin B Kenny2007-09-0317-2550/+2617
|
* * generic/tclObj.c (TclInitObjSubsystem): restore registration of thedas2007-09-032-2/+41
| | | | | "wideInt" Tcl_ObjType for compatibility with 8.4 extensions that access the tclWideIntType Tcl_ObjType; add setFromAnyProc for tclWideIntType.
* make tclVarHashKeyType definition staticdas2007-09-031-2/+2
|
* fix warnings about 64bit signed vs unsigned comparisondas2007-09-031-3/+3
|
* Doc clarification.dkf2007-09-022-4/+12
|
* * generic/tclCompile.c: Added fflush() calls following all callers ofdgp2007-08-303-2/+11
| | | | | | * generic/tclExecute.c: TclPrintByteCodeObj() so that tcl_traceCompile output is less likely to get mangled when writes to stdout interleave with other code.
* * generic/tclCompExpr.c: Use a table lookup in ParseLexeme()dgp2007-08-282-63/+58
| | | | to determine lexemes with single-byte representations.
* * generic/tclBasic.c: Used unions to better clarify overloading ofdgp2007-08-284-38/+72
| | | | | * generic/tclCompExpr.c: the fields of the OpCmdInfo and * generic/tclCompile.h: TclOpCmdClientData structs.
* typodas2007-08-271-2/+3
|
* * generic/tclCompExpr.c: Call TclCompileSyntaxError() whendgp2007-08-276-189/+87
| | | | | | | | | | | | | | | | expression syntax errors are found when compiling expressions. With this in place, convert TclCompileExpr to return void, since there's no longer any need to report TCL_ERROR. * generic/tclCompile.c: Update callers. * generic/tclExecute.c: * generic/tclCompCmds.c: New routine TclCompileSyntaxError() * generic/tclCompile.h: to directly compile bytecodes that report a * generic/tclCompile.c: syntax error, rather than (ab)use a call to TclCompileReturnCmd. Also, undo the most recent commit that papered over some issues with that (ab)use. New routine produces a new opcode INST_SYNTAX, which is a minor variation of INST_RETURN_IMM. Also a bit of constification.
* * generic/tclCompile.c: Move the deallocation of local LiteralTabledgp2007-08-274-24/+11
| | | | | * generic/tclCompExpr.c: entries into TclFreeCompileEnv(). * generic/tclExecute.c: Update callers.
* * generic/tclCompExpr.c: Force numeric and boolean literalsdgp2007-08-272-7/+32
| | | | | in expressions to register with their intreps intact, even if that means overwriting existing intreps in already registered literals.
* fix warnings about signed vs unsigned comparison (type of sizeof() is size_t ↵das2007-08-271-7/+7
| | | | i.e. unsigned!)
* * library/clock.tcl (ParseClockScanFormat): Modified code to allowKevin B Kenny2007-08-253-20/+67
| | | | | * tests/clock.test (clock-60.*): case-insensitive matching of time zone and month names. [Bug 1781282]
* * generic/tclExecute.c (TclExecuteByteCode): Added code to handleKevin B Kenny2007-08-253-5/+555
| | | | | | | * tests/expr.test (expr-23.48-53) integer exponentiation that results in 32- and 64-bit integer results, avoiding calls to wide integer exponentiation routines in this common case. [Bug 1767293]
* * generic/tclCompExpr.c: Register literals found in expressionsdgp2007-08-243-6/+60
| | | | | | * tests/compExpr.test: to restore literal sharing. Preserve numeric intreps when literals are created for the first time. Correct memleak in ExecConstantExprTree() and add test for the leak.
* * generic/tclCompile.c: replaced copy loop that tripped someMiguel Sofer2007-08-242-5/+10
| | | | compilers with memmove [Bug 1780870]
* * library/init.tcl ([auto_load_index]): Delete stray "]" that createddgp2007-08-232-2/+5
| | | | an expr syntax error (masked by a [catch]).
* * generic/tclCompCmds.c (TclCompileReturnCmd): Added crash protectiondgp2007-08-232-2/+33
| | | | | to handle callers other than TclCompileScript() failing to meet the initialization assumptions of the TIP 280 code in CompileWord().
* * generic/tclCompExpr.c: Suppress the attempt to convert todgp2007-08-232-2/+7
| | | | numeric when pre-compiling a constant expresion indicates an error.
* ensure WORDS_BIGENDIAN redefinition is consistent with autoconf definitiondas2007-08-231-2/+2
|
* * generic/tclExecute.c (TEBC): disable the new shortcut to frequentMiguel Sofer2007-08-222-4/+2
| | | | INSTs for debug builds. REVERTED (collision with alternative fix)
* Missing init in ParseExpr().dgp2007-08-222-4/+3
| | | | Label needs debug build exposure in TEBC.
* * generic/tclExecute.c (TEBC): disable the new shortcut to frequentMiguel Sofer2007-08-222-2/+9
| | | | INSTs for debug builds.
* * generic/tclMain.c: Corrected the logic of dropping the lastdgp2007-08-213-19/+64
| | | | | * tests/main.test: newline from an interactively typed command. [Bug 1775878].
* thread-4.4: clear ::errorInfo in the thread as a message is left here from ↵patthoyts2007-08-212-2/+7
| | | | init.tcl on windows due to no tcl_pkgPath.
* * generic/tclExecute.c (INST_SUB): fix usage of the new macro forMiguel Sofer2007-08-202-3/+16
| | | | | overflow detection in sums, adapt to subtraction. Lenghty comment added.
* Swapped the order in the Overflowing macro (created in the last commit byMiguel Sofer2007-08-191-2/+5
| | | | Donal): check first the condition most likely to fail in its usage by [incr].
* Make Miguel's overflow-detection more mnemonic with a macro.dkf2007-08-192-77/+95
|
* * generic/tclExecute.c: changed the check for overflow in sums,Miguel Sofer2007-08-192-18/+24
| | | | | | | | | | | reducing objsize, number of branches and cache misses (according to cachegrind). Non-overflow for s=a+b: previous ((a >= 0 || b >= 0 || s < 0) && (s >= 0 || b < 0 || a < 0)) now (((a^s) >= 0) || ((a^b) < 0)) This expresses: "a and s have the same sign or else a and b have different sign".
* Resolve [Bug 1752148]dkf2007-08-192-79/+84
|
* * generic/tclVar.c: improved localVarNameType caching to leverageMiguel Sofer2007-08-172-9/+46
| | | | | the new availability of Tcl_Obj in variable names, avoiding string comparisons to verify that the cached value is usable.
* * generic/tclExecute.c: check the two most frequent instructionsMiguel Sofer2007-08-162-1/+22
| | | | before the switch. Reduces both runtime and obj size a tiny bit.