summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclStrToD.c: Correct conditional compile directives todgp2009-12-071-4/+5
| | | | | better detect the toolchain that needs extra work for proper underflow treatment instead of merely detecting the mips platform. [Bug 2902010].
* * generic/tclBasic.c: add ::tcl::unsupported::yieldToMiguel Sofer2009-12-072-6/+68
| | | | * generic/tclInt.h: [Patch 2910056]
* Plug memory leak. [Bug 2910044]dkf2009-12-071-1/+9
|
* missing declarationMiguel Sofer2009-12-071-1/+2
|
* factoring TclSpliceTailcall out of TclPopStackFrameMiguel Sofer2009-12-064-48/+59
|
* * generic/tclBasic.c: Small changes for clarity in tailcallMiguel Sofer2009-12-062-17/+42
| | | | * generic/tclExecute.c: and coroutine code.
* * generic/tclBasic.c: Fixed things so that you can tailcallMiguel Sofer2009-12-053-4/+28
| | | | | | | | * generic/tclNamesp.c: properly out of a coroutine. * tests/tailcall.test: * generic/tclInterp.c: Fixed tailcalls for same-interp aliases (no test)
* tcl.h Don't use EXPORT for Tcl_InitStubsnijtmans2009-11-301-3/+3
| | | | win/Makefile.in Better dependancies in case of static build.
* Match the version-bump of TclOO.dkf2009-11-271-2/+3
|
* [Bug 2903811]: Remove unneeded restrictions on usefully calling thedkf2009-11-271-8/+6
| | | | oo::object->variable method. Leaving it hidden is enough.
* fix warning on LP64das2009-11-261-1/+5
|
* Ensure that destroying an object in a constructor doesn't crash. [Bug 2903011]dkf2009-11-241-4/+44
|
* #undef STATIC_BUILD in tclWin(Dde|Reg).c, in order to makenijtmans2009-11-232-38/+33
| | | | | | | | | | | sure that Xxxxx_Init is always exported even when Tcl is built static (otherwise we cannot create a DLL). tclThreadTest.c: Make all functions static, except TclThread_Init. fCmd.test Enable fCmd-30.1 when registry is available. tcl.m4 Fix ${SHLIB_LD_LIBS} definition, fix conflicts configure.in between static libraries and import library on windows. configure (regenerated) Makefile.in Simplifications related to tcl.m4 changes.
* * generic/tclThreadTest.c (NewTestThread): [Bug 2901803]Kevin B Kenny2009-11-231-2/+2
| | | | | Further machinations to get NewTestThread actually to launch the thread, not just compile.
* [Bug 2901803]: Fix silly error.dkf2009-11-231-14/+16
|
* Cast required when setting result using a const string. String is copied by ↵patthoyts2009-11-211-2/+2
| | | | TCL_VOLATILE.
* a bit of cleanupdgp2009-11-201-1/+4
|
* Updated freeIntRepProc routines sonijtmans2009-11-191-2/+3
| | | | | | | that they set the typePtr field to NULL so that the Tcl_Obj is not left in an inconsistent state. [Bug 2857044]
* Test-case for fixed [Bug 2849797]nijtmans2009-11-192-5/+2
| | | | | | Fix safe-10.1 and safe-10.4 test cases, making the wrong assumption that Tcltest should be a static package.
* Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-185-27/+97
| | | | get created with static Tcl build
* Fix [Bug 2849797]: channel name inconsistencies as suggested by DKFnijtmans2009-11-182-7/+13
| | | | | | minor *** POTENTIAL INCOMPATIBILITY *** because Tcl_CreateChannel() and its derivatives, now sometimes ignore their "chanName" argument.
* Eliminate unneccessary spacesnijtmans2009-11-181-4/+4
|
* Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-1816-154/+158
|
* Use proper command creation routine.dgp2009-11-161-2/+2
|
* Revert mistaken commitdgp2009-11-165-107/+7
|
* (forward port) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-167-14/+175
| | | | manifestations in the future. Add tcltest support for finalization.
* * generic/tclIO.c (CopyData): [Bug 2895565]. Dropped bogosityandreas_kupries2009-11-121-9/+12
| | | | | | * tests/io.test: which used the number of _written_ bytes or character to update the counters for the read bytes/characters. New test io-53.11. This is a forward port from the 8.5 branch.
* * generic/tclClock.c (TclClockInit): Do not create [clock] supportdgp2009-11-121-1/+10
| | | | commands in safe interps.
* Fix [Bug 2888099] (close discards ENOSPC error) by saving the errnoferrieux2009-11-101-2/+17
| | | | | from the first of two FlushChannel()s. Uneasy to test; might need specific channel drivers. Four-hands with aku.
* * generic/tclBasic.c: Plug another leak in TCL_EVAL_DIRECTandreas_kupries2009-11-101-9/+9
| | | | | evaluation. Forward port from Tcl 8.5 branch, change by Don Porter.
* * generic/tclObj.c: Plus memory leak in TclContinuationsEnter().andreas_kupries2009-11-101-1/+12
| | | | | [Bug 2895323]. Forward port from Tcl 8.5 branch, change by Don Porter.
* * generic/tclBasic.c (TclEvalObjEx): Moved the #280 decrement ofandreas_kupries2009-11-091-8/+7
| | | | | | | refCount for the file path out of the branch after the whole conditional, closing a memory leak. Added clause on structure type to prevent seg.faulting. Forward port from valgrinding the Tcl 8.5 branch.
* Some small bits of tidying up.dkf2009-11-091-16/+14
|
* [Bug 2889593]: Make [expr round()] give the right error.dkf2009-10-311-2/+2
|
* * generic/tcl.h: Changed the typedef for the mp_digit typedgp2009-10-291-6/+2
| | | | | | | | | | | | | | | | | | | | | | | from: typedef unsigned long mp_digit; to: typedef unsigned int mp_digit; For 32-bit builds where "long" and "int" are two names for the same thing, this is no change at all. For 64-bit builds, though, this causes the dp[] array of an mp_int to be made up of 32-bit elements instead of 64-bit elements. This is a huge improvement because details elsewhere in the mp_int implementation cause only 28 bits of each element to be actually used storing number data. Without this change bignums are over 50% wasted space on 64-bit systems. [Bug 2800740]. ***POTENTIAL INCOMPATIBILITY*** For 64-bit builds, callers of routines with (mp_digit) or (mp_digit *) arguments *will*, and callers of routines with (mp_int *) arguments *may* suffer both binary and stubs incompatibilities with Tcl releases 8.5.0 - 8.5.7. Such possibilities should be checked, and if such incompatibilities are present, suitable [package require] requirements on the Tcl release should be put in place to keep such built code [load]-ing only in Tcl interps that are compatible.
* Remove accidental C99-ism which reportedly makes the AIX native compiler choke.dkf2009-10-291-19/+31
|
* * generic/tclLiteral.c: Fixed 2 bugs reported in [Bug 2888044].dgp2009-10-281-1/+2
| | | | | | | | | | | * tests/info.test: First, as noted in the comments of the TclCleanupLiteralTable routine, since the teardown of the intrep of one Tcl_Obj can cause the teardown of others in the same table, the full table cleanup must be done with care, but the code did not contain the same care demanded in the comment. Second, recent additions to the info.test file had poor hygiene, leaving an array variable ::a lying around, which breaks later interp.test tests during a -singleproc 1 run of the test suite.
* * generic/tclPathObj.c: Missing refcount on cached normalized pathdgp2009-10-271-1/+2
| | | | caused crashes. [Bug 2884203].
* * generic/tclIO.c (FlushChannel): Skip OutputProc for low-levelandreas_kupries2009-10-231-2/+6
| | | | | | 0-length writes. When closing pipes which have already been closed not skipping leads to spurious SIG_PIPE signals. Reported by Mikhail Teterin <mi+thun@aldan.algebra.com>.
* Let [$obj varname x(y)] work. [Bug 2883857]dkf2009-10-221-2/+25
|
* Fix [Bug 2882561].dkf2009-10-211-3/+3
|
* Fix [Bug 2881259].dkf2009-10-211-2/+2
|
* * generic/tclIO.c: Revised ReadChars and FilterInputBytes routinesdgp2009-10-191-17/+27
| | | | | | | to permit reads to continue up to the string limits of Tcl values. Before revisions, large read attempts could panic when as little as half the limiting value length was reached. [Patch 2107634] Thanks to Sean Morrison and Bob Parker for their roles in the fix.
* Fix for [Bug 2871908]Joe Mistachkin2009-10-181-6/+6
|
* Fix [Bug 2629338]: Stop evil unset traces from accessing freed memory.dkf2009-10-172-22/+45
|
* [Bug 2874678]: Don't leak bignums in [dict incr]...dkf2009-10-081-1/+7
|
* * generic/tclObj.c: [Bug 2871908]: Plug memory leaks of theandreas_kupries2009-10-071-21/+19
| | | | | | | objThreadMap and lineCLPtr hashtables. Also make the names of the continuation line information initialization and finalization functions more consistent. Patch supplied by Joe Mistachkin <joe@mistachkin.com>.
* * generic/tclIORChan.c (ErrnoReturn): Replace the hardwiredandreas_kupries2009-10-071-2/+2
| | | | | | constant 11 with the proper errno define, EAGAIN. What was I thinking ? The BSD's have a different errno assignment and break with the hardwired number. Reported by emiliano on the chat.
* * generic/tclInterp.c (SlaveEval): Agressive stomping of internal repsdgp2009-10-061-17/+4
| | | | | | | was added as part of the NRE patch of 2008-07-13. This doesn't appear to actually be needed, and it hurts quite a bit when large lists lose their intreps and require reparsing. Thanks to Ashok Nadkarni for reporting the problem.
* * generic/tclTomMathInt.h (new): Public header tclTomMath.h haddgp2009-10-063-5/+5
| | | | | * generic/tclTomMath.h: dependence on private headers, breaking use * generic/tommath.h: by extensions [Bug 1941434].