summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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 3019634] errno.h and tclWinPort.h have conflicting definitions.nijtmans2010-06-281-10/+34
|
* * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrongdkf2010-06-221-2/+3
| | | | args message.
* Remove hack needed for zlib 1.2.3 on win32nijtmans2010-06-211-103/+28
|
* Simplify Tcl_AppInit and *_Init definitions.nijtmans2010-06-166-32/+24
| | | | | | Change TclpThreadCreate and Tcl_CreateThread signature, making clear that "proc" is a function pointer, as in all other "proc" function parameters.
* Fix compilation of xttest with 8.6 changesnijtmans2010-06-141-11/+8
| | | | tclPipe.c: Fix gcc warning (with -fstrict-aliasing=2)
* whitespacedgp2010-06-081-17/+19
|
* Ensure proper reset of [info errorstack] even when compiling constant expr's ↵ferrieux2010-06-072-53/+53
| | | | with errors.
* * generic/tclBasic.c: Fix for #3008307: make callerPtr chainsMiguel Sofer2010-06-052-13/+28
| | | | | | | | | * generic/tclExecute.c: be traversable accross coro boundaries. Add the special coroutine CallFrame (partially reverting commit of 2009-12-10), as it is needed for coroutines that do not push a CF - eg, those with [eval] as command. Thanks to Colin McCormack (coldstore) and Alexandre Ferrieux for the hard work on this.
* Safer (and faster) computation of [uplevel] offsets in TIP 348. Toplevel ↵ferrieux2010-06-021-10/+7
| | | | offsets no longer overestimated.
* remove some "BUILD_tcloo" leftoversnijtmans2010-06-021-8/+1
|
* Fix computation of [uplevel] offsets in TIP 341.ferrieux2010-05-311-2/+2
| | | | | Only depend on callerPtr chaining now. Needed for upcoming coro patch.
* Eliminate some casts to (Tcl_HashTable *)nijtmans2010-05-312-6/+6
|
* [tcl-Patches-3008541] order of TIP #348 fields in Interp structurenijtmans2010-05-281-14/+18
|
* * generic/tclCompCmdsSZ.c (IssueTryFinallyInstructions): [3007374]:dkf2010-05-281-45/+57
| | | | | Corrected error in handling of catch contexts to prevent crash with chained handlers.
* * generic/tclExecute.c (TclExecuteByteCode): Restore correct operationdkf2010-05-281-15/+21
| | | | of instruction-level execution tracing (had been broken by NRE).
* uniParse.tcl: Don't generate spaces at the end of a line.nijtmans2010-05-271-785/+785
|
* [Bug #3005233] fix for build on OpenBSD vaxnijtmans2010-05-211-3/+5
|
* Don't use arrays of length 1, just use a single element then, it makes code ↵nijtmans2010-05-193-16/+16
| | | | more readable.
* Fix [Bug 2996549]: Failure in expr.test on Win32nijtmans2010-05-171-3/+7
|
* * generic/tclCmdIL.c (TclInfoFrame): Change this code to usedkf2010-05-171-9/+6
| | | | | Tcl_GetCommandFullName rather than rolling its own. Discovered during the hunting of [Bug 3001438] but unlikely to be a fix.
* Correct some comments (Jos Decoster found...)dkf2010-05-141-4/+4
|
* Unnecessary type casts, See Tcl [Patch #2997087]nijtmans2010-05-051-12/+12
|
* CONSTify various useful internal functionsnijtmans2010-05-036-53/+52
| | | | | (TclBignumToDouble, TclCeil, TclFloor), and related tommath functions.
* Use "tclIO.h" and "tclTomMathDecls.h" everywherenijtmans2010-05-033-34/+36
|
* * generic/tcl.h: Bump patchlevel to 8.6b1.2 to distinguishdgp2010-04-301-2/+2
| | | | | | | | | * library/init.tcl: CVS snapshots from earlier snapshots as well * unix/configure.in: as the 8.6b1 and 8.6b2 releases. * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
* * generic/tclBinary.c (TclAppendBytesToByteArray): Add commentsdgp2010-04-303-10/+15
| | | | | | | | | | | * generic/tclInt.h (TclAppendBytesToByteArray): placing overflow protection responsibility on caller. Convert "len" argument to signed int which any value already vetted for overflow issues will fit into. * generic/tclStringObj.c: Update caller; standardize panic msg. * generic/tclBinary.c (UpdateStringOfByteArray): Add panic when the generated string representation would grow beyond Tcl's size limits. [Bug 2994924]
* * generic/tclBinary.c (TclAppendBytesToByteArray): Add extra armourdkf2010-04-301-6/+11
| | | | against buffer overflows.
* Fix the problems I introduced inadvertently:dkf2010-04-301-13/+23
| | | | | | * generic/tclBasic.c (NRInterpCoroutine): Corrected handling of * tests/coroutine.test (coroutine-6.4): arguments to deal with trickier cases.
* * generic/tclCompCmds.c (TclCompileVariableCmd): Slightly tighterdkf2010-04-301-2/+8
| | | | issuing of instructions.
* * generic/tclExecute.c (TclExecuteByteCode): Add peephole optimizationdkf2010-04-301-1/+26
| | | | | of the fact that INST_DICT_FIRST and INST_DICT_NEXT always have a conditional jump afterwards.
* * generic/tclBasic.c (TclNRYieldObjCmd, TclNRYieldmObjCmd)dkf2010-04-301-16/+33
| | | | | | (NRInterpCoroutine): Replace magic values for formal argument counts for coroutine command implementations with #defines, for an increase in readability.
* Unnecessary TCL_STORAGE_CLASS re-definition.nijtmans2010-04-301-4/+1
| | | | | It was used for an ancient dummy reference to Tcl_LinkVar(), but that's already gone since 2002-05-29.
* * generic/tclCompExpr.c: Slight change in the literal sharingMiguel Sofer2010-04-294-30/+25
| | | | | | * generic/tclCompile.c: mechanism to avoid shimmering of * generic/tclCompile.h: command names. * generic/tclLiteral.c:
* fix MSVC warning C4018: '>' : signed/unsigned mismatchnijtmans2010-04-291-2/+2
|
* * generic/tclBinary.c (TclAppendBytesToByteArray): [Bug 2992970]: Makedkf2010-04-293-6/+82
| | | | | | * generic/tclStringObj.c (Tcl_AppendObjToObj): an append of a byte array to another into an efficent operation. The problem was the (lack of) a proper growth management strategy for the byte array.
* Remove unused @MAN2TCLFLAGS@nijtmans2010-04-286-19/+26
| | | | | | | | | | | Move <limits.h> include from tclInt.h to tclWinPort.h, and eliminate unneeded <stdlib.h>, <stdio.h> and <string.h>, which are already in tclInt.h Move "tclInt.h" from regcustom.h up to regex.h. tclAlloc.c: Unneeded <stdio.h> include tclExecute.c: Fix gcc warning: comparison between signed and unsigned
* * generic/tclInt.h (TclIsVarDirectUnsettable): Corrected flags so thatdkf2010-04-282-1910/+1931
| | | | | | | | | | | | | deletion of traces is not optimized out... * generic/tclExecute.c (ExecuteExtendedBinaryMathOp) (TclCompareTwoNumbers,ExecuteExtendedUnaryMathOp,TclExecuteByteCode): [Patch 2981677]: Move the less common arithmetic operations (i.e., exponentiation and operations on non-longs) out of TEBC for a big drop in the overall size of the stack frame for most code. Net effect on speed is minimal (slightly faster overall in tclbench). Also extended the number of places where TRESULT handling is replaced with a jump to dedicated code.
* Code reordering to slightly shorten generated object code.dkf2010-04-271-330/+239
|
* If tclInt.h or tclPort.h is alreadynijtmans2010-04-2711-48/+19
| | | | | | | included, don't include <limits.h> again. Follow-up to [Bug 2991415]: tclport.h #included before limits.h See comments in [Bug 2991415]
* [Bug 2992292]: tclIOUtil.c assignment type mismatch compiler warningnijtmans2010-04-271-4/+4
|
* * generic/tclStubInit.c: Add a small amount of gcc-isms (with #ifdefdkf2010-04-262-2/+12
| | | | | * generic/tclOOStubInit.c: guards) to ensure that warnings are issued when these files are older than the various *.decls files.
* * generic/tclBasic.c: add unsupported [yieldm] command.Miguel Sofer2010-04-252-24/+48
| | | | * generic/tclInt.h:
* * generic/tclBasic.test: modify api of TclSpliceTailcall()Miguel Sofer2010-04-243-11/+12
| | | | | | * generic/tclExecute.c: to fix yieldTo, which had not survived * generic/tclInt.h: the latest mods to tailcall. Thanks kbk for detecting the problem.
* Move TCHAR fallback typedef from tcl.h to tclPlatDecls.h (as suggested by dgp)nijtmans2010-04-224-18/+19
| | | | Eliminate various unnecessary type casts.
* Use function prototypes from the FS API.nijtmans2010-04-201-49/+30
|
* * generic/tclExecute.c (TclExecuteByteCode): Improve commenting anddkf2010-04-191-170/+180
| | | | reduce indentation for the Invocation Block.
* Added commentnijtmans2010-04-151-1/+7
|
* Move inclusion of <tchar.h> from tclPlatDecls.hnijtmans2010-04-152-17/+11
| | | | | | | | | to tclWinPort.h, where it belongs. Add fallback in tcl.h, so at least TCHAR typedef is always available in win32, even without <tchar.h> Tk already did the same in tkWinPort.h, now Tcl does it the same (correct) way.
* * generic/tclCompCmdsSZ.c (TclSubstCompile): If the first token doesdkf2010-04-081-3/+22
| | | | | | | | not result in a *guaranteed* push of a Tcl_Obj on the stack, we must push an empty object. Otherwise it is possible to get to a 'concat1' or 'done' without enough values on the stack, resulting in a crash. Thanks to Joe Mistachkin for identifying a script that could trigger this case.