summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * 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:
* * generic/tclBasic.c (TEOVI): fix por possible leak of a CommandMiguel Sofer2006-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.
* * generic/tclEnv.c (Darwin): mark _environ symbol as unexported.das2006-10-311-1/+2
|
* * 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:
* * 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:
* * 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.
* (UnicodeToUtfProc): dst must be set to (ch & 0xFF) to work on big endian systemshobbs2006-10-061-2/+2
|
* * 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]
* * generic/tclVar.c (Tcl_LappendObjCmd):Miguel Sofer2006-10-051-2/+9
| | | | | * tests/append.test(4.21-22): fix for longstanding [Bug 1570718], lappending nothing to non-list. Reported by lvirden
* Attempt to correct regression filename-16.6 due to 2006-05-13 commit.dgp2006-10-031-2/+6
|
* * generic/tclFileName.c (TclGlob): Prevent doubling of directorydgp2006-10-021-1/+5
| | | | separators by [glob]. [Bug 1569042]
* 2006-09-30 Miguel Sofer <msofer@users.sf.net>Miguel Sofer2006-09-301-5/+16
| | | | | * generic/tclUtil.c (Tcl_SplitList): optimisation, [Patch 1344747] by dgp.
* * 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:
* * 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.
* * 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.
* * 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.
* * generic/tclParse.c (Tcl_ParseCommand): also return an error ifMiguel Sofer2006-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
* * generic/tclInt.h: Moved TIP#268's field 'packagePrefer' to theandreas_kupries2006-09-221-10/+10
| | | | end of the structure, for better backward compatibility.
* * 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.
* Fix [Bug 1562528]dkf2006-09-221-2/+2
|
* * 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:
* * 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
* * generic/tclFileName.c (TclDoGlob): match incr with existing decr.hobbs2006-08-301-6/+6
|
* * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadIdhobbs2006-08-301-1/+2
|
* * 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
* * generic/tclIOUtil.c: Revisions to complete the thread finalizationdgp2006-08-211-1/+3
| | | | of the cwdPathPtr. [Bug 1536142]
* * 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.
* * generic/tclEncoding.c: Replace buffer copy in for loopdgp2006-08-091-4/+2
| | | | with call to memcpy(). Thanks to afredd. [Patch 1530262]
* Made Tcl_AsyncDelete() more tolerant when called after all thread TSDvasiljevic2006-07-111-14/+23
| | | | has been garbage-collected.
* * generic/tclIO.c (Tcl_CreateChannel): allow Tcl std channelhobbs2006-07-101-3/+8
| | | | inheritance to be #defined out (default remains in).
* 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
* * 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.
* * generic/tcl.h (Tcl_DecrRefCount): use if/else construct to allowhobbs2006-05-301-2/+5
| | | | placement in unbraced outer if/else conditions. (jcw)
* Silence compiler warning.dgp2006-05-151-2/+3
|
* * 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]
* * 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.
* * 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].
* * 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:
* * generic/tclExecute.c (ExprSrandFunc): Restore acceptance of widedgp2006-05-041-11/+11
| | | | * tests/expr-old.test: integer values by srand() [Bug 1480509].
* * generic/tclCmdMZ.c: Stop some interference between enter tracesdgp2006-04-111-5/+10
| | | | * tests/trace.test: and enterstep traces. [Bug 1458266]
* * generic/tclRegexp.c (FinalizeRegexp): full reset data tohobbs2006-04-071-1/+7
| | | | indicate that readiness for reinitialization.
* * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seemsdgp2006-04-061-2/+2
| | | | | | | * tests/indexObj.test: there are extensions that rely on the prior * doc/GetIndex.3: behavior that the empty string cannot succeed as a unique prefix matcher, so I'm restoring Donal Fellow's solution. Added mention of this detail to the documentation. [Bug 1464039]
* * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow emptydgp2006-04-051-7/+3
| | | | | strings to be matched by the Tcl_GetIndexFromObj machinery, in the same manner as any other key. [Bug 1464039]
* Fix [Bug 1646039]dkf2006-04-051-13/+9
|
* * generic/tclPkg.c: Revised Bug 1162286 fix from 2005-11-08dgp2006-04-051-4/+10
| | | | | | | to be even more forgiving of package version mismatch errors in [package ifneeded] commands, not even logging any warning messages. This further reduces the ***POTENTIAL INCOMPATIBILITY*** noted for that change.
* * generic/tclIO.c (ReadChars): Added check and panic andandreas_kupries2006-04-052-4/+89
| | | | | | | | | | | | | | | | | | | | | commentary to a piece of code which relies on BUFFER_PADDING to create enough space at the beginning of each buffer forthe insertion of partial multi-byte data at the beginning of a buffer. To explain why this code is ok, and as precaution if someone twiddled the BUFFER_PADDING into uselessness. * generic/tclIO.c (ReadChars): [SF Tcl Bug 1462248]. Added code temporarily suppress the use of TCL_ENCODING_END set when eof was reached while the buffer we are converting is not truly the last buffer in the queue. together with the Utf bug below it was possible to completely bollox the buffer data structures, eventually crashing Tcl. * generic/tclEncoding.c (UtfToUtfProc): Fixed problem where the function accessed memory beyond the end of the input buffer. When TCL_ENCODING_END is set and the last bytes of the buffer start a multi-byte sequence. This bug contributed to [SF Tcl Bug 1462248].
* * generic/tclIOUtil.c: fix to nativeFilesystemRecord comparisonsdas2006-03-281-6/+6
| | | | (lesser part of [Bug 1064247])
* typo in commentdas2006-03-281-2/+2
|
* backport of file writable fixesvincentdarley2006-03-191-64/+1
|