summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* [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.
* Undodkf2010-04-061-2/+1
|
* * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): Plug leak of object whendkf2010-04-061-1/+2
| | | | setting a variable fails.
* TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-055-6/+198
|
* Minor changes to enforce Engineering Manual style rules.dkf2010-04-041-65/+74
|
* Add missing "const" in signature,nijtmans2010-04-023-17/+17
| | | | and some formatting fixes
* * generic/tclIOUtil.c (Tcl_LoadFile): Corrections to previous commitdkf2010-04-021-2/+1
| | | | | * unix/tclLoadDyld.c (TclpDlopen): to make it build on OSX. Also add missing ChangeLog entry for previous commit by KBK.
* * generic/tcl.decls: [TIP #357]: First round of changesKevin B Kenny2010-04-027-190/+336
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: to export Tcl_LoadFile, Tcl_FindSymbol, * generic/tclIOUtil.c: and Tcl_FSUnloadFile to the public API. * generic/tclInt.h: * generic/tclLoad.c: * generic/tclLoadNone.c: * generic/tclStubInit.c: * tests/fileSystem.test: * tests/load.test: * tests/unload.test: * unix/tclLoadDl.c: * unix/tclLoadDyld.c: * unix/tclLoadNext.c: * unix/tclLoadOSF.c: * unix/tclLoadShl.c: * unix/tclUnixPipe.c: * win/Makefile.in: * win/tclWinLoad.c:
* * generic/tclStrToD.c: [Bug 2952904]: Defer creation of the smallestKevin B Kenny2010-04-021-5/+3
| | | | | | floating point number until it is actually used. (This change avoids a bogus syslog message regarding a 'floating point software assist fault' on SGI systems.)
* * generic/tclIORChan.c (ReflectClose, ReflectInput, ReflectOutput,andreas_kupries2010-03-301-59/+98
| | | | | | | | ReflectSeekWide, ReflectWatch, ReflectBlock, ReflectSetOption, ReflectGetOption, ForwardProc): [Bug 2978773]: Preserve ReflectedChannel* structures across handler invokations, to avoid crashes when the handler implementation induces nested callbacks and destruction of the channel deep inside such a nesting.
* * generic/tclObj.c (Tcl_GetCommandFromObj): [Bug 2979402]: Reorderdgp2010-03-301-2/+2
| | | | | the validity tests on internal rep of a "cmdName" value to avoid invalid reads reported by valgrind.
* [Bug 2979399] uninitialized value troublesnijtmans2010-03-301-28/+5
|
* [FRQ 2974744]: share exception codes (ObjType?):nijtmans2010-03-302-51/+53
| | | | further optimization, making use of indexType.
* * generic/tclStringObj.c: Fix array overrun in test format-1.12dgp2010-03-291-2/+2
| | | | caught by valgrind testing.
* [Freq 2974744] share exception codes (ObjType?)nijtmans2010-03-274-43/+60
|
* [Bug 2976508] tcl HEAD fails on HP-UXnijtmans2010-03-261-2/+3
|
* * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-1/+23
| | | | * tests/result.test: that it rejects illegal non-list values.
* * generic/tclOOInfo.c (InfoObjectMethodTypeCmd)dkf2010-03-242-3/+136
| | | | | (InfoClassMethodTypeCmd): Added introspection of method types so that it is possible to find this info out without using errors.