summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclPkg.c: Backport fix for [1573844] to thedgp2007-09-191-802/+484
| | | | | | * tests/pkg.test: TCL_TIP268 sections. FossilOrigin-Name: 69225f179ab55eba6e40f459dc5f277860760dc0
* whitespacedas2007-09-131-2/+2
| | | FossilOrigin-Name: 5aab07238c12d72691a31eef16dcd8d1fd47c19c
* * generic/tclDTrace.d (new file): add DTrace provider for Tcl; allowsdas2007-09-137-11/+424
| | | | | | | | | | | | | | | | | * generic/tclCompile.h: tracing of proc and command entry & * generic/tclBasic.c: return, bytecode execution, object * generic/tclExecute.c: allocation and more; with essentially * generic/tclInt.h: zero cost when tracing is inactive; * generic/tclObj.c: enable with --enable-dtrace configure * generic/tclProc.c: arg (disabled by default, will only * unix/Makefile.in: enable if DTrace is present). * unix/configure.in: [Patch 1793984] * macosx/Makefile: enable DTrace support. * unix/configure: autoconf-2.13 FossilOrigin-Name: 9eb5b5b76c36ef5452df1d5d43ec78519fadb17b
* * generic/tclLink.c (Tcl_UpdateLinkedVar): guard against var beinghobbs2007-09-101-2/+9
| | | | | | unlinked. [Bug 1740631] (maros) FossilOrigin-Name: 1ae99dbfd25fe27ff3e6bcb9b983d71f89ef026e
* * generic/tclClock.c (FormatClock): Claimed additional space forkennykb2007-08-251-1/+4
| | | | | | | | the %c format code to avoid a buffer overrun when formatting (for example) a Friday in February in the Portuguese locale. [Bug 1751117] FossilOrigin-Name: 975081e0e19ceb6459b7acc83342582026551689
* * generic/tclCompile.c: replaced copy loop that tripped somemsofer2007-08-241-5/+5
| | | | | | compilers with memmove [Bug 1780870] FossilOrigin-Name: abcd910d180774226d14905cdda213965e47db13
* ensure WORDS_BIGENDIAN redefinition is consistent with autoconf definitiondas2007-08-231-2/+2
| | | FossilOrigin-Name: 6b0d11412ba0115b72591e7f20828f237eb6e7fa
* * generic/tclEnv.c: improve environ handling on Mac OS X (adapteddas2007-08-071-23/+1
| | | | | | * unix/tclUnixPort.h: from Apple changes in Darwin tcl-64). FossilOrigin-Name: a9a78987d9dbff3cc3746645cb04e51462fd5049
* * generic/tclParse.c: In contexts where interp and parsePtr->interpdgp2007-07-191-8/+8
| | | | | | might be different, be sure to use the latter for error reporting. FossilOrigin-Name: 01fbe5d14ad428fbf8f95244d74398b30f5731b8
* De-fang an instance of the shared-result anti-pattern. [Bug 1716704]dkf2007-06-301-1/+5
| | | FossilOrigin-Name: 409b92bba6c38622bc34dca77662a124d854257c
* Prevent RemeberSyncObj() from growing the syncvasiljevic2007-06-301-3/+14
| | | | | | | object lists by reusing already free'd slots, if possible. See discussion on Bug 1726873 for more information. FossilOrigin-Name: 5018ee60c0634af72594ae74d2725bbb9249ab62
* * generic/tclAlloc.c: on Darwin, ensure memory allocated bydas2007-06-292-50/+65
| | | | | | | * generic/tclThreadAlloc.c: the custom TclpAlloc()s is aligned to 16 byte boundaries (as is the case with the Darwin system malloc). FossilOrigin-Name: f80bb890e9e3e930f39faf8e6386468eb6c606df
* * generic/tclCmdMZ.c: Corrected broken trace reversal logic indgp2007-06-272-7/+22
| | | | | | | | * generic/tclTest.c: TclCheckInterpTraces that led to infinite loop * tests/basic.test: when multiple Tcl_CreateTrace traces were set and one of them did not fire due to level restrictions. [Bug 1743931]. FossilOrigin-Name: a32f24e76c41ce5cac687595ad2450339b8cc8f8
* * README: Bump version number to 8.4.16dgp2007-05-301-3/+3
| | | | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure: FossilOrigin-Name: f1616f051e667752e5f46da6599d86fecec64670
* * generic/tclIO.c: Backport memleak fix in TclFinalizeIOSubsystem.dgp2007-05-241-74/+79
| | | FossilOrigin-Name: bb3dfd4fa32568f85e4adf3b34133ff68cc7f4f3
* * generic/tclNamesp.c: Plugged memory leak related todgp2007-05-151-2/+8
| | | | | | [namespace delete ::]. [Bug 1716782] FossilOrigin-Name: 13bfe388224dbb90372889d1e58bede56081bf65
* * generic/tclInt.h: TclFinalizeThreadAlloc() is always defined,dgp2007-05-101-2/+2
| | | | | | so make sure it is also always declared. FossilOrigin-Name: cd054b4cdff8e6a6fd1928fb9711d7ff9b1d0154
* [Tcl Bug 1706140]dgp2007-05-104-53/+35
| | | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c (Trace*Proc): Update Tcl_VarTraceProcs so * generic/tclLink.c (LinkTraceProc): that they call * generic/tclUtil.c (TclPrecTraceProc): Tcl_InterpDeleted() for themselves, and do not rely on (frequently buggy) setting of the TCL_INTERP_DESTROYED flag by the trace core. * generic/tclVar.c: Update callers of CallVarTraces to not pass in the TCL_INTERP_DESTROYED flag. Also apply filters so that public routines only pass documented flag values down to lower level routines. * generic/tclVar.c (CallVarTraces): The setting of the TCL_INTERP_DESTROYED flag is now done entirely within the CallVarTraces routine, the only place it can be done right. FossilOrigin-Name: e09d290d78d358bdb642204b2e1d794f4f93e953
* Restored Cygwin buildability [Bug 1387154]kennykb2007-04-211-3/+3
| | | FossilOrigin-Name: 336c551ccc103380d932482ead2b120f4bcb1d13
* * generic/tclInt.decls: Yet another round of attemptingkennykb2007-04-214-16/+17
| | | | | | | | | | | * generic/tclInt.h: to get the correct type signature * unix/tclUnixPort.h: for TclpLocaltime and TclpGmtime. * unix/tclUnixTime.c: CONST TclpTime_t is a 'time_t *CONST' * win/tclWinTime.c: and not a 'CONST time_t*'! * generic/tclIntDecls.h: [Bug 1677275] * generic/tclIntPlatDecls.h: Regenerated. FossilOrigin-Name: c109ead7b6580bc2ed9f05a731312bd0eaa13272
* * generic/tclEvent.c (Tcl_CreateThread): Replaced some calls todgp2007-03-192-6/+6
| | | | | | | | * generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging. FossilOrigin-Name: 801b5dc41c0bffb2278f82825a7cda803f16faaf
* * generic/tclExecute.c (INST_FOREACH_STEP4): Re-fetch pointers fordgp2007-03-131-6/+13
| | | | | | | * tests/foreach.test (foreach-10.1): the value list each iteration of the loop as defense against shimmers. [Bug 1671087] FossilOrigin-Name: 336d9f35daed5947096d2cf4b6967c5bed47949b
* * generic/tclVar.c (TclArraySet): Re-fetch pointers for the listdgp2007-03-131-1/+9
| | | | | | | | * tests/var.test (var-17.1): argument of [array set] each time through the loop as defense against possible shimmer issues. [Bug 1669489]. FossilOrigin-Name: d5a61fe6c13f537abdaa84d535aebd756f541110
* Fix [Bug 1675116] in a way suitable for 8.4.dkf2007-03-101-1/+13
| | | FossilOrigin-Name: 6b2b4fef7a90a6ed374c83a4c98c782f9cfe3f3a
* D'oh! Used an 8.5-ism...dkf2007-03-011-2/+2
| | | FossilOrigin-Name: 5d3f8bc4a902e8a1d5747a9fa089620248d9164b
* Fix [Bug 1671138]dkf2007-03-011-1/+13
| | | FossilOrigin-Name: ef06e2aa1d01c6353aabccca34e6c01446f14edb
* (Tcl_FSEvalFile): safe incr of objPtr refhobbs2007-02-191-1/+2
| | | FossilOrigin-Name: ba27b6b0d86b8572f25e98a6aab816cf07e806fd
* * generic/tclEncoding.c (EscapeFromUtfProc): Applied patchandreas_kupries2007-02-121-3/+15
| | | | | | | | | | | supplied by Mo DeJong to fix [Bug 1516109]. Backport from Tcl 8.5. Mo's description: Clear the TCL_ENCODING_END flag when end bytes are written. This fix keep this method from writing escape bytes for an encoding like iso2022-jp multiple times when the escape byte overlap with the end of the IO buffer. * tests/io.test: Add test case for escape byte overlap case. FossilOrigin-Name: e60b64283806fa6296e1255cc7509b775fdb8f41
* Backport to 8.4 (Don Porter's work).andreas_kupries2006-12-051-1/+3
| | | | | | | | | | | | | | When no requirements are supplied to a [package require $pkg] and [package unknown] is invoked to find a satisfying package, pass the requirement argument "0-" (which means all versions are acceptable). This permits a registered [package unknown] command to call [package vsatisfies $testVersion {*}$args] without any special handling of the empty $args case. This fixes/avoids a bug in [::tcl::tm::UnknownHandler] that was causing old TM versions to be provided in preference to newer TM versions. Thanks to Julian Noble for discovering the issue. FossilOrigin-Name: fb9873f4571dec518c943740f9646b7d62faf02e
* * generic/tclBasic.c: TIP #280 implementation, conditional on the define ↵andreas_kupries2006-11-2814-49/+2166
| | | | | | | | | | | | | | | | | | | | | | | | | TCL_TIP280. * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test: FossilOrigin-Name: a88d79cbf88f04a3f3918625a36a4df1d75704a2
* * generic/tclBasic.c (TEOVI): fix por possible leak of a Commandmsofer2006-11-041-12/+17
| | | | | | | | | | | in the presence of execution traces that delete it. * generic/tclBasic.c (TEOVI): * tests/trace.test (trace-21.11): fix for [Bug 1590232], execution traces may cause a second command resolution in the wrong namespace. FossilOrigin-Name: 87f0d6eba665832f778ec088b2e60df5e3078bf9
* * generic/tclEnv.c (Darwin): mark _environ symbol as unexported.das2006-10-311-1/+2
| | | FossilOrigin-Name: b57dd06aba6766b6df998666984e728067ea9590
* * README: Bump version number to 8.4.15dgp2006-10-231-3/+3
| | | | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure: FossilOrigin-Name: 02f32d5d722564be41ed25f18a12460f8119aa50
* * generic/tclIOUtil.c: Cleaned up some code flagged by adgp2006-10-172-13/+13
| | | | | | | | * generic/tclInt.h: `make checkexports` test. * win/tclWin32Dll.c: * win/tclWinFile.c: FossilOrigin-Name: 2eadc777e927c60db9faec712e1634d1a80e0c00
* * generic/tclPkg.c (Tcl_PkgRequireEx): Corrected crash whenandreas_kupries2006-10-111-8/+12
| | | | | | | argument version==NULL passed in. Backport of the fix for the same problem in 8.5. FossilOrigin-Name: 52ce4a8c3aef5bd7835b2c22787e7cdde919d956
* (UnicodeToUtfProc): dst must be set to (ch & 0xFF) to work on big endian systemshobbs2006-10-061-2/+2
| | | FossilOrigin-Name: 1114fb679189b0de3cc5a0850f99c22f80ba982d
* * generic/tcl.h: note limitation on changing Tcl_UniChar sizehobbs2006-10-052-26/+41
| | | | | | | | * generic/tclEncoding.c (UtfToUnicodeProc, UnicodeToUtfProc): * tests/encoding.test (encoding-16.1): fix alignment issues in unicode <> utf conversion procs. [Bug 1122671] FossilOrigin-Name: b800442074e2773c8356ec9e18e7d1b06e54338a
* * generic/tclVar.c (Tcl_LappendObjCmd):msofer2006-10-051-2/+9
| | | | | | | * tests/append.test(4.21-22): fix for longstanding [Bug 1570718], lappending nothing to non-list. Reported by lvirden FossilOrigin-Name: 6631da8060da6f46e008ef470b6e270a8ab3ca61
* Attempt to correct regression filename-16.6 due to 2006-05-13 commit.dgp2006-10-031-2/+6
| | | FossilOrigin-Name: 9f44abdef2653c931590c41f7d6f20c7c903f7b5
* * generic/tclFileName.c (TclGlob): Prevent doubling of directorydgp2006-10-021-1/+5
| | | | | | separators by [glob]. [Bug 1569042] FossilOrigin-Name: dfeb6ada5a2865594e1da93cd1ae427e49860287
* 2006-09-30 Miguel Sofer <msofer@users.sf.net>msofer2006-09-301-5/+16
| | | | | | | * generic/tclUtil.c (Tcl_SplitList): optimisation, [Patch 1344747] by dgp. FossilOrigin-Name: 3151fcb2e1bebd488c3fa299e9d532bcaca703ab
* * win/makefile.vc: Updated MSVC build to properly deal withpatthoyts2006-09-261-2/+2
| | | | | | | | | | * win/nmakehlp.c: MSVC8 and AMD64 target. Backport from 8.5 * win/rules.vc: * generic/tcl.h: Fixed stat definition for MSVC8 AMD64. * win/tclWinSock.c: Casting type police. * win/tclWinTime.c: FossilOrigin-Name: 962a33862b39e8b8cb638dccffd3e0a9230b0f15
* * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellowsdgp2006-09-261-4/+1
| | | | | | | | demonstrates, "#define NULL 0" is just wrong, and as a quotable chat figure observed, "If NULL isn't defined, we're not using a C compiler." Improper fallback definition of NULL removed. FossilOrigin-Name: 62873cf9a9bf4c79478faa112232ea4ec2af4742
* * generic/tclIO.c (Tcl_StackChannel): Fixed [SF Tcl Bug 1564642],andreas_kupries2006-09-251-2/+2
| | | | | | | aka coverity #51. Extended loop condition, added checking for NULL to prevent seg.fault. FossilOrigin-Name: 82a33de1626129ff601526bb0655cad8fd75ad46
* * generic/tclBasic.c: Reverted exposure of patchlevel inandreas_kupries2006-09-251-6/+6
| | | | | | | | registered core version when TIP#268 features are activated. Better compatibility with existing packages. Like Tk. FossilOrigin-Name: 034d4274109d393882be49929c350df2a68ee582
* * generic/tclParse.c (Tcl_ParseCommand): also return an error ifmsofer2006-09-242-5/+7
| | | | | | | | | start==NULL and numBytes<0. This is coverity's bug #20 * generic/tclStringObj.c (STRING_SIZE): fix allocation for 0-length strings. This is coverity's bugs #54-5 FossilOrigin-Name: cbbabd2395ec80a8faa1b00c284951f29da82e61
* * generic/tclInt.h: Moved TIP#268's field 'packagePrefer' to theandreas_kupries2006-09-221-10/+10
| | | | | | end of the structure, for better backward compatibility. FossilOrigin-Name: ce1746af4588eeea87c18087473b7ab27a3ce905
* * generic/tclPkg.c (Tcl_PkgRequireEx): Changes handling of theandreas_kupries2006-09-221-2/+59
| | | | | | | | return information from 'Tcl_PkgRequireProc'. Keep the interpreter result empty. Backport of fix for problem found while testing #268 under 8.5. More details in the comments. FossilOrigin-Name: 1f5d22e0081b37097d63a8a10d6e5f8e5982eb0f
* Fix [Bug 1562528]dkf2006-09-221-2/+2
| | | FossilOrigin-Name: 1f72f1dc049e51205cf3f66fd1765a8fe80025c2
* * generic/tcl.decls: Implemented TIP #268, conditionally.andreas_kupries2006-09-227-93/+1436
| | | | | | | | | | | | | | | | | * generic/tclBasic.c: Define TCL_TIP268 to activate the new * generic/tclDecls.h: features. * generic/tclInt.h: * generic/tclPkg.c: * generic/tclStubInit.c: * generic/tclTest.c: * library/init.tcl * library/package.tcl: * tests/pkg.test: * tests/platform.test: * tests/safe.test: * doc/PkgRequire.3: FossilOrigin-Name: 78a272c42aaf7c6c9472f55bef7a82605b1cc2c6