summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* 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
* * win/tclWinFCmd.c: [Bug 1548263] Added test for NULL returnhobbs2006-08-301-3/+8
| | | | | | | * generic/tclIOUtil.c: from Tcl_FSGetNormalizedPath which was causing segv's FossilOrigin-Name: bf32b6a16f52c11c4f6bac3a347a958affef497e
* * generic/tclFileName.c (TclDoGlob): match incr with existing decr.hobbs2006-08-301-6/+6
| | | FossilOrigin-Name: a8648325b1f1147ee4357ca280d5c24b582e7177
* * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadIdhobbs2006-08-301-1/+2
| | | FossilOrigin-Name: 592c2c91269108f27144045fad7b83bb53b51cd4
* * generic/tclIOGT.c (ExecuteCallback):hobbs2006-08-302-6/+7
| | | | | | | * generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj) with more efficient Tcl_Eval(Obj)Ex FossilOrigin-Name: 0ac1070d51a9d30e76bfc2993c3ff552ba4c3ad1
* * generic/tclIOUtil.c: Revisions to complete the thread finalizationdgp2006-08-211-1/+3
| | | | | | of the cwdPathPtr. [Bug 1536142] FossilOrigin-Name: 4557a5daa498498080e23172460af780c321a75e
* * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, fordas2006-08-181-1/+2
| | | | | | | | | | | | | | | | universal builds including x86_64, for 64-bit CoreFoundation on Leopard and for use of -mmacosx-version-min instead of MACOSX_DEPLOYMENT_TARGET. * unix/configure: autoconf-2.13 * generic/tcl.h: add fixes for building on Leopard and support for * unix/tclUnixPort.h: 64-bit CoreFoundation on Leopard. * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it causes execve to fail intermittently. (rdar://4685553) * macosx/README: updates for x86_64 support and Xcode 2.3. FossilOrigin-Name: a341c3758d1036ad7599b6e42f887de70114e95a
* * generic/tclEncoding.c: Replace buffer copy in for loopdgp2006-08-091-4/+2
| | | | | | with call to memcpy(). Thanks to afredd. [Patch 1530262] FossilOrigin-Name: 7d1d8644536b19d070d9edb3f5ed863cf98dcb37
* Made Tcl_AsyncDelete() more tolerant when called after all thread TSDvasiljevic2006-07-111-14/+23
| | | | | | has been garbage-collected. FossilOrigin-Name: 9cd2581375dd5d702ea66913927d0b49c4184894
* * generic/tclIO.c (Tcl_CreateChannel): allow Tcl std channelhobbs2006-07-101-3/+8
| | | | | | inheritance to be #defined out (default remains in). FossilOrigin-Name: 51333eb85f3fcd066f9f14ad2e2774503cc90994
* Enable building Tcl with Microsoft's latest compiler offeringpatthoyts2006-06-143-9/+13
| | | | | | | | (VS2005). We have to handle a number of oddities as they have deprecated most of the standard C library and now generate manifest files to be linked into the binaries. SF bug #1424909 FossilOrigin-Name: f0865d186be22364b93769489cba19c7df78ef9f
* * generic/tclNamesp.c (NamespaceInscopeCmd): revert [Bug 1400572]hobbs2006-05-311-5/+3
| | | | | | | | fix of 2006-01-09 for [namespace inscope] as it seems to mess with itcl scope decoding. Leaving namespace-29.6 test failure until final cause it determined. FossilOrigin-Name: a5ddb548a6e68c8d45eba7ee84315ab008f729ea
* * generic/tcl.h (Tcl_DecrRefCount): use if/else construct to allowhobbs2006-05-301-2/+5
| | | | | | placement in unbraced outer if/else conditions. (jcw) FossilOrigin-Name: 4bef433d451275ad5cf1d389396fb47244dadd66
* Silence compiler warning.dgp2006-05-151-2/+3
| | | FossilOrigin-Name: 3e5d0df2942458e4de0081e9fc29ff388ba93904
* * generic/tclFileName.c (TclDoGlob): Disabled the partialdgp2006-05-131-4/+8
| | | | | | | | normalization done by the recursive glob routine, since changing the precise string of the pathname broke [glob] on some Tcl_Filesystems. [Bug 943995] FossilOrigin-Name: 641fe5b72dd38760e82777c6dfb460322d099422
* * generic/tclProc.c (ProcCompileProc): When a bump of the compiledgp2006-05-131-7/+87
| | | | | | | | | | epoch forces the re-compile of a proc body, take care not to overwrite any Proc struct that may be referred to on the active call stack. This fixes [Bug 148218]. Note that the fix will not be effective for code that calls the private routine TclProcCompileProc() directly. FossilOrigin-Name: 463e0bb43d7857cd5a0cdfc5ed8058c47516cb1e
* * generic/tclMain.c (Tcl_Main): Corrected flaw that requireddgp2006-05-051-67/+67
| | | | | | | | * tests/main.test: (Tcl_Main-4.5): processing of one interactive command before passing control to the loop routine registered with Tcl_SetMainLoop() [Bug 1481986]. FossilOrigin-Name: f4e4abd17fd6355fbea233c0181074455e89066a
* * README: Bump version number to 8.4.14dgp2006-05-041-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: 318c584699d85e86ed6f1311e7af1ac81ca3625d
* * generic/tclExecute.c (ExprSrandFunc): Restore acceptance of widedgp2006-05-041-11/+11
| | | | | | * tests/expr-old.test: integer values by srand() [Bug 1480509]. FossilOrigin-Name: bab9abe548fa45bbb19ee187b7df5c35733dbfd3