summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* bugfix, docs clarification and new tests for 'namespace upvar' [Bug 1546833]Miguel Sofer2006-08-261-2/+14
|
* * generic/tclParseExpr.c: Minimal collection of new testsdgp2006-08-231-43/+36
| | | | | | * tests/parseExpr.test: testing the error messages of the new expr parser. Several bug fixes and code simplifications that appeared during that effort.
* * generic/tclParseExpr.c: Revised mistaken call todgp2006-08-211-7/+12
| | | | | TclCheckBadOctal(), so both [expr 08] and [expr 08z] have same additional info in error message.
* * generic/tclIOUtil.c: Revisions to complete the thread finalizationdgp2006-08-211-1/+3
| | | | of the cwdPathPtr. [Bug 1536142]
* * generic/tclClock.c (ClockClicksObjCmd): add support for Darwindas2006-08-213-8/+29
| | | | | | | | | * generic/tclCmdMZ.c (Tcl_TimeObjCmd): nanosecond resolution timer * generic/tclInt.h: to [clock clicks] and [time] * unix/configure.in (Darwin): when TCL_WIDE_CLICKS defined. * unix/tclUnixTime.c (TclpGetWideClicks, TclpWideClicksToNanoseconds): * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, fordas2006-08-183-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.59 * unix/tclConfig.h.in: autoheader-2.59 * generic/tcl.h: add fixes for building on Leopard and support * unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard. * macosx/tclMacOSXFCmd.c: * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it causes execve to fail intermittently. (rdar://4685553) * generic/tclTomMath.h: on Darwin 64-bit, for now disable use of 128-bit arithmetic through __attribute__ ((mode(TI))), as it leads to link errors due to missing fallbacks. (rdar://4685527) * macosx/Tcl.xcodeproj/project.pbxproj: add x86_64 to universal build, switch native release targets to use DWARF with dSYM, Xcode 3.0 changes. * macosx/README: updates for x86_64 and Xcode 2.3. * macosx/Tcl.xcodeproj/default.pbxuser: add test suite target that runs * macosx/Tcl.xcodeproj/project.pbxproj: the tcl test suite at build time and shows clickable test suite errors in the GUI build window. * tests/macOSXFCmd.test: fix use of deprecated resource fork paths. * unix/tclUnixInit.c (TclpInitLibraryPath): move code that is only needed when TCL_LIBRARY is defined to run only in that case. * generic/tclLink.c (LinkTraceProc): fix 64-bit signed-with-unsigned comparison warning from gcc4 -Wextra.
* * generic/tclCompile.c: Revised the new set of expressiondgp2006-08-172-104/+84
| | | | * generic/tclParseExpr.c: parse error messages.
* * generic/tclParseExpr.c: Replace PrecedenceOf() functiondgp2006-08-161-76/+14
| | | | with prec[] static array.
* It seems that the original submitter of the patch didn't test it. Add a dkf2006-08-111-1/+9
| | | | critical buffer reset so that nested namespaces get the right fullName...
* Applied [Patch 1352382]dkf2006-08-111-150/+150
|
* D'oh! Fix silly mistakes.dkf2006-08-101-3/+3
|
* Various minor object file size efficiency fixes. [Bug 1530474]dkf2006-08-1019-246/+241
|
* * generic/tclEncoding.c: Replace buffer copy in for loopdgp2006-08-091-4/+2
| | | | with call to memcpy(). Thanks to afredd. [Patch 1530262]
* Error message consistency improvements. [Bug 1534628]dkf2006-08-091-3/+3
|
* Fix silly error in error handling for uncompiled [dict for]. [Bug 1531184]dkf2006-08-091-11/+11
|
* typodas2006-08-021-2/+2
|
* Bug 1531530Kevin B Kenny2006-07-311-4/+5
|
* Bug 1426279Kevin B Kenny2006-07-311-12/+37
|
* * generic/tclExecute.c: Corrected flawed overflow detection indgp2006-07-261-2/+5
| | | | | * tests/expr.test: INST_EXPON that caused [expr 2**64] to return 0 instead of the same value as [expr 1<<64].
* undo mistaken commitdgp2006-07-212-20/+17
|
* * generic/tclExecute.c:Miguel Sofer2006-07-213-21/+29
| | | | * tests/execute.test (execute-9.1): dgp's fix for [Bug 1522803].
* * generic/regc_locale.c (cclass):das2006-07-208-47/+47
| | | | | | | | | | | | | * generic/tclExecute.c (TclExecuteByteCode): * generic/tclIOCmd.c (Tcl_ExecObjCmd): * generic/tclListObj.c (NewListIntRep): * generic/tclObj.c (Tcl_GetLongFromObj, Tcl_GetWideIntFromObj, FreeBignum, Tcl_SetBignumObj): * generic/tclParseExpr.c (Tcl_ParseExpr): * generic/tclStrToD.c (TclParseNumber): * generic/tclStringObj.c (TclAppendFormattedObjs): * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
* Made Tcl_AsyncDelete() more tolerant when called after all thread TSDvasiljevic2006-07-111-14/+23
| | | | has been garbage-collected.
* Improvements to error context messagesdgp2006-07-051-3/+9
|
* * generic/tclParseExpr.c: Completely new expression parserdgp2006-07-053-27/+1192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that builds a parse tree instead of operating with deep recursion. This corrects reports of stack-blowing crashes parsing long expressions [Bug 906201] and replaces a fundamentally O(N^2) algorithm with an O(N) one [RFE 903765]. The new parser is better able to generate error messages that clearly report both the nature and context of the syntax error [Bugs 1029267, 1381715]. For now, the code for the old parser is still present and can be activated with a "#define OLD_EXPR_PARSER 1". This is for the sake of a clean implementation patch, and for ease of benchmarking. The new parser is non-recursive, so much lighter in stack consumption, but it does use more heap, so there may be cases where parsing of long expressions that succeeded with the old parser will lead to out of memory panics with the new one. There are still more improvements possible on that point, though significant progress may require changes to the Tcl_Token specifications documented for the public Tcl_Parse*() routines. ***POTENTIAL INCOMPATIBILITY*** for any callers that rely on the exact (usually terrible) error messages generated by the old parser. This includes a large number of tests in the test suite. * generic/tclInt.h: Replaced TclParseWhiteSpace() with * generic/tclParse.c: TclParseAllWhiteSpace() which is what * generic/tclParseExpr.c: all the callers really needed. Breaking whitespace runs at newlines is useful only to the command parsing function, and it can call the file scoped routine ParseWhiteSpace() to do that. * tests/expr-old.test: Removed knownBug constraints that masked * tests/expr.test: failures due to revised error messages. * tests/parseExpr.test:
* fix warningsdas2006-06-211-22/+22
|
* * generic/tclIOUtil.c: Changed default configuration todgp2006-06-218-158/+78
| | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: #undef USE_OBSOLETE_FS_HOOKS which disables * generic/tclTest.c: access to the Tcl 8.3 internal routines for hooking into filesystem operations. Everyone ought to have migrated to Tcl_Filesystems by now. ***POTENTIAL INCOMPATIBILITY*** for any code still stuck in the pre-Tcl_Filesystem era. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclStrToD.c: Removed dead code that permitted disabling of recognition of the new 0b and 0o numeric formats. * generic/tclExecute.c: Removed dead code that implemented alternative * generic/tclObj.c: design where numeric values did not automatically narrow to the smallest Tcl_ObjType required to hold them.
* * generic/tclCmdAH.c: Removed dead code that was old implementationdgp2006-06-201-484/+1
| | | | of [format].
* typodgp2006-06-161-2/+2
|
* * 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/tclProc.c (ProcCompileProc): When a bump of the compiledgp2006-05-131-5/+83
| | | | | | | | 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/tclEvent.c (HandleBgErrors): fix leak. [Coverity issue 86]das2006-05-121-1/+2
|
* * generic/tclMain.c (Tcl_Main): Corrected flaw that requireddgp2006-05-051-111/+111
| | | | | | * 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.5a5dgp2006-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.59 * win/configure:
* * generic/tclBasic.c (ExprSrandFunc): Restore acceptance of wide/bigdgp2006-05-041-4/+15
| | | | * doc/mathfunc.n: integer values by srand() [Bug 1480509].
* * generic/tclBinary.c: Revised the handling of the Q and q formatdgp2006-04-263-12/+81
| | | | | | * generic/tclInt.h: specifiers for [binary] to account for the * generic/tclStrToD.c: "middle endian" floating point format used in Nokia N770.
* * doc/DoubleObj.3: More doc updates for TIP 237.dgp2006-04-251-1/+2
| | | | | | | | * doc/scan.n: * generic/tclScan.c: [scan $s %u] is documented to accept only * tests/scan.test: decimal formatted integers. Fixed code to match.
* fix for Martin Lemburg's DST conversion bug.Kevin B Kenny2006-04-191-2/+65
| | | | http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/9a8b15a4dfc0b7a0
* Fix [1376892]dkf2006-04-121-1/+86
|
* * generic/tclTrace.c: Stop some interference between enter tracesdgp2006-04-111-4/+10
| | | | * tests/trace.test: and enterstep traces. [Bug 1458266]
* * generic/tclPathObj.c: Yet another revised fix for the [Bug 1379287]dgp2006-04-071-5/+12
| | | | * tests/fileSystem.test: family of path normalization bugs.
* * 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/tclPathObj.c: Revised fix for the [Bug 1379287] familydgp2006-04-061-30/+19
| | | | of path normalization bugs.
* * 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]
* Nail [Bug 1464039] by allowing the empty string to be exactly matched bydkf2006-04-051-19/+15
| | | | Tcl_GetIndexFromObj. Also added tests.
* * generic/tclIO.c (ReadChars): Added check and panic andandreas_kupries2006-04-052-2/+87
| | | | | | | | | | | | | | | | | | | | | 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/tclExecute.c: remove unused var and silence gcc warningMiguel Sofer2006-03-301-3/+6
|
* * generic/tclPathObj.c: More fixes for path normalization when /../dgp2006-03-291-9/+15
| | | | * tests/fileSystem.test: tries to go beyond root.[Bug 1379287]