summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * generic/tclCmdMZ.c (TryPostBody, TryPostHandler): Make sure that thedkf2010-03-241-5/+31
| | | | [try] command does not trap unwinding due to limits.
* * generic/tclCmdMZ.c: [Bug 2973361] Revised fix for computingdgp2010-03-231-24/+29
| | | | indices of script arguments to [try].
* Make error message in "try" implementationnijtmans2010-03-232-11/+13
| | | | exactly the same as the one in "return"
* * generic/tclCmdMZ.c: [Bug 2973361]: Compute the correct integerdgp2010-03-221-6/+11
| | | | | values to identify the argument indices of the various script arguments to [try]. Passing in -1 led to invalid memory reads.
* Missed a spot.dkf2010-03-201-2/+2
|
* regendkf2010-03-202-10/+23
|
* Allow [fcopy] to move more than 2GB per call. Frederic Bonnet identified issue.dkf2010-03-204-48/+65
|
* Compile the [throw] command.dkf2010-03-193-4/+117
|
* * generic/tclListObj.c: Prevent in overflow trouble in [lreplace]dgp2010-03-182-3/+107
| | | | | * generic/tclTestObj.c: operations. Thanks to kbk for fix and test. * tests/listObj.test: [Bug 2971669].
* Fix silly error in bytecode generation for [try].dkf2010-03-181-1/+3
|
* [Bug 2971921]: Corrected jump so that it doesn't skip into the middledkf2010-03-181-33/+40
| | | | | of an instruction! Tightened the instruction issuing. Moved endCatch calls closer to their point that they guard.
* * generic/tclIORTrans.c (ReflectInput, ReflectOutput,andreas_kupries2010-03-172-21/+65
| | | | | | | | | | | | | ReflectSeekWide): [Bug 2921116]: Added missing TclEventuallyFree calls for preserved ReflectedTransform* structures. Reworked ReflectInput to preserve the structure for its whole life, not only in InvokeTclMethod. * generic/tclIO.c (Tcl_GetsObj): [Bug 2921116]: Regenerate topChan, may have been changed by a self-modifying transformation. * tests/ioTrans/test (iortrans-4.8, iortrans-4.9, iortrans-5.11, iortrans-7.4, iortrans-8.3): New test cases.
* Remove unnecessary '&' decoration for functionnijtmans2010-03-112-58/+58
| | | | | pointers. Fix double declaration of TclNativeDupInternalRep
* * generic/tclIORChan.c: [Bug 2936225]: Thanks to Alexandre Ferrieuxandreas_kupries2010-03-091-6/+27
| | | | | | * doc/refchan.n: <ferrieux@users.sourceforge.net> for debugging and fixing * tests/ioCmd.test: the problem. It is the write-side equivalent to the bug fixed 2009-08-06.