summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclInterp.c (ApplyObjCmd):Miguel Sofer2006-10-121-5/+26
| | | | | | * tests/interp.test (interp-14.5-10): made [interp alias] use the ensemble rewrite machinery to produce better error messages [Bug 1576006]
* * generic/tclPkg.c (Tcl_PackageRequireEx): Corrected crashdgp2006-10-111-8/+12
| | | | when argument version=NULL passed in.
* * generic/tclNamespace.c (TclTeardownNamespace): After thedgp2006-10-101-1/+2
| | | | | | commandPathSourceList of a namespace is cleared, set the commandPathSourceList to NULL so we don't try to walk the list a second time, possibly after it is freed. [Bug 1566526]
* Silence GCC (cast is always safe; value is known to fit with wiggle room)dkf2006-10-101-2/+2
|
* TIP #275: Support unsigned values in binary commandpatthoyts2006-10-061-19/+57
|
* (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-28/+40
| | | | | | * 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/+7
| | | | | * tests/append.test(4.21-22): fix for longstanding [Bug 1570718], lappending nothing to non-list. Reported by lvirden
* * generic/tclUtil.c (Tcl_SplitList): optimisation, [Patch 1344747]Miguel Sofer2006-09-301-5/+16
| | | | by dgp.
* * generic/tclInt.decls:Miguel Sofer2006-09-305-22/+69
| | | | | | | | | * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclObj.c: * generic/tclStubInit.c: added an internal function TclObjBeingDeleted to provide info as to the reason for the loss of an internal rep. [FR 1512138]
* * generic/tclCompile.c:Miguel Sofer2006-09-304-63/+80
| | | | | | | | | * generic/tclHistory.c: * generic/tclInt.h: * generic/tclProc.c: made Tcl_RecordAndEvalObj not call "history" if it has been redefined to an empty proc, in order to reduce the noise when debugging [FR 1190441]. Moved TclCompileNoOp from tclProc.c to tclCompile.c
* * generic/tclPkg.c (CompareVersions): Bugfix. Check string lengthsandreas_kupries2006-09-281-9/+17
| | | | | | | * tests/pkg.test: before comparison. The shorter string is the smaller number. Added testcases as well. Interestingly all existing test cases for vcompare compared numbers of the same length with each other. See [SF Tcl Bug 1563836].
* * generic/tclExecute.c: Corrected error in INST_LSHIFT in thedgp2006-09-281-2/+2
| | | | | | | | * tests/expr.test: calculation done to determine whether a shift in the (long int) type is possible. The calculation had literal value "1" where it needed a value "1L" to compute the correct result. Error detected via testing with the math::bigfloat package [Bug 1567222]
* * generic/tclIO.c (Tcl_GetsObj): added two test'n'panic guards forMiguel Sofer2006-09-281-1/+7
| | | | possible NULL derefs, [Bug 1566382] and coverity #33.
* * generic/tclPkg.c (CompareVersion): Flatten strcmp() results todgp2006-09-281-1/+2
| | | | {-1, 0, 1} to match expectations of CompareVersion() callers.
* * generic/regc_color.c (uncolorchain):Miguel Sofer2006-09-272-4/+5
| | | | | | * generic/regc_nfa.c (freearc): changed tests and asserts to equivalent formulation, designed to avoid an explicit comparison to NULL and satisfy coverity that 6 and 9 are not bugs.
* changed last commit - ifdef'ing out unused mcce (multi char collationMiguel Sofer2006-09-273-6/+48
| | | | elements) code.
* * generic/regc_cvec.c (addmcce):Miguel Sofer2006-09-272-0/+14
| | | | | | | | * generic/regcomp.c (compile): the static function addmcce does nothing when called with two NULL pointers; the only call is by compile with two NULL pointers (regcomp.c #includes regc_cvec.c). The whole thing is now ifdef'ed out with the macro REGEXP_ADDMCCE_UNUSED. This also silences coverity's #7.
* * tests/pkg.test: Added test for version comparison at the 32bitandreas_kupries2006-09-271-38/+89
| | | | | | | | | | | | | boundary. [SF Tcl Bug 1563836]. * generic/tclPkg.c: [SF Tcl Bug 1563836]. Rewrote CompareVersion to perform string comparison instead of numeric. This breaks through the 32bit limit on version numbers. See code for details (handling of leading zeros, signs, etc.). un-CONSTed some arguments of CompareVersions, RequirementSatisfied, and AllRequirementsSatisfied. The new compare modifies the string (temporary string terminators). All callers use heap-allocated ver-intreps, so we are good with that.
* * generic/tclFileName.c (TclGlob): added a panic for a call withMiguel Sofer2006-09-271-2/+7
| | | | | TCL_GLOBMODE_TAILS and pathPrefix==NULL. This would cause a segfault, as found by coverity #26.
* TIP 27 changes for Tcl_CreateEncodingKevin B Kenny2006-09-263-7/+7
|
* * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellowsdgp2006-09-261-5/+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.
* More fixing which struct stat to refer to. Some casts from time_t to int ↵patthoyts2006-09-263-20/+20
| | | | | | | required. Tcl_Time structure members are longs. Support for varying compiler options and build to platform-specific subdirs.
* * 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.
* Minor change: Improved code styledkf2006-09-251-14/+21
|
* yet another stab at 1564777Kevin B Kenny2006-09-251-2/+2
|
* yet another stab at 1564777Kevin B Kenny2006-09-251-9/+29
|
* fix line endingsdgp2006-09-251-1127/+1127
|
* Fix [Bug 1564677]dkf2006-09-251-1123/+1127
|
* * generic/tclStringObj.c (STRING_SIZE): fix allocation forMiguel Sofer2006-09-241-2/+4
| | | | 0-length strings. This is coverity's bugs #54-5
* * generic/tclParse.c (Tcl_ParseCommand): also return an error ifMiguel Sofer2006-09-241-2/+2
| | | | start==NULL and numBytes<0. This is coverity's bug #20
* * generic/tclInt.h: Moved TIP#268's field 'packagePrefer' to theandreas_kupries2006-09-221-11/+9
| | | | end of the structure, for better backward compatibility.
* TIP#268 IMPLEMENTATIONandreas_kupries2006-09-229-149/+930
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/PkgRequire.3: Documentation of extended API, * doc/package.n: extended testsuite. * tests/pkg.test: * generic/tcl.decls: Implementation. * generic/tclBasic.c: * generic/tclConfig.c: * generic/tclInt.h: * generic/tclPkg.c: * generic/tclTest.c: * generic/tclTomMathInterface.c: * library/init.tcl: * library/package.tcl: * library/tm.tcl:
* Fix [Bug 1562528]dkf2006-09-221-29/+29
|
* * generic/tclUtil.c: Dropped ParseInteger() routine.dgp2006-09-211-80/+15
| | | | TclParseNumber covers the task just fine.
* Fix nasty bug with limits, vwait's (C) traces, and interpreter restart...dkf2006-09-191-4/+6
|
* * generic/tclExecute.c (INST_EXPON): Native type overflow detectiondgp2006-09-191-46/+6
| | | | | | | * tests/expr.test: was completely broken. Falling back on use of bignums for all non-trivial ** calculations until native-type-constrained special cases can be done carefully and correctly. [Bug 1561260].
* * generic/tclExecute.c: Corrected INST_EXPON flaw that treateddgp2006-09-111-1/+4
| | | | * tests/expr.test: $x**1 as $x**3. [Bug 1555371]
* * generic/tclCompExpr.c: Removed much complexity that isdgp2006-09-051-292/+88
| | | | no longer needed.
* * generic/tclCompExpr.c: Corrected flawed logic fordgp2006-08-311-1/+3
| | | | | | disabling the INST_TRY_CVT_TO_NUMERIC instruction at the end of an expression when function arguments contain operators. [Bug 1541274]
* * generic/tclParseExpr.c: Dropped the old expr parser.dgp2006-08-301-1965/+8
|
* * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadIdhobbs2006-08-301-1/+2
|
* * generic/tclIOGT.c (ExecuteCallback):hobbs2006-08-302-5/+6
| | | | | * generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj) with more efficient Tcl_Eval(Obj)Ex
* * generic/tclFileName.c (DoGlob): match incrs with decrs.hobbs2006-08-301-1/+3
|
* silence compiler warndgp2006-08-291-2/+2
|
* undo mistaken commitdgp2006-08-291-2/+2
|
* * generic/tclParseExpr.c: Use the "parent" field ofdgp2006-08-291-6/+11
| | | | | | | orphan ExprNodes to store the closure of left pointers. This lets us avoid repeated re-scanning leftward for the left boundary of subexpressions, which in worst case led to near O(N^2) runtime.
* add casts to make gcc2 happy with previous commit [Bug 1548330]das2006-08-292-31/+31
|
* fixed [ 1548263 ] NULL return from Tcl_FSGetNormalizedPath segvcoldstore2006-08-292-13/+17
|
* * generic/tclStringObj.c: Revised ObjPrintfVA to take caredgp2006-08-282-25/+35
| | | | | | | | * generic/tclParseExpr.c: to copy only whole characters when doing %s formatting. This relieves callers of TclObjPrintf() and TclFormatToErrorInfo() from needing to fix arguments to character boundaries. Tcl_ParseExpr() simplified by taking advantage. [Bug 1547786]