summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclIO.c (Tcl_GetsObj): added two test'n'panic guards forMiguel Sofer2006-09-282-1/+12
| | | | possible NULL derefs, [Bug 1566382] and coverity #33.
* * generic/tclPkg.c (CompareVersion): Flatten strcmp() results todgp2006-09-282-1/+7
| | | | {-1, 0, 1} to match expectations of CompareVersion() callers.
* * generic/regc_color.c (uncolorchain):Miguel Sofer2006-09-273-4/+10
| | | | | | * 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-274-6/+61
| | | | 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-273-39/+110
| | | | | | | | | | | | | 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-272-2/+13
| | | | | 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-265-10/+17
|
* Additional compiler flags and amd64 support.patthoyts2006-09-264-19/+55
|
* * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellowsdgp2006-09-262-5/+8
| | | | | | 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.
* Fixing msvc8 and stat modificationspatthoyts2006-09-261-1/+4
|
* More fixing which struct stat to refer to. Some casts from time_t to int ↵patthoyts2006-09-267-60/+97
| | | | | | | 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-252-2/+8
| | | | | aka coverity #51. Extended loop condition, added checking for NULL to prevent seg.fault.
* another nitdgp2006-09-251-2/+2
|
* * doc/package.n: Fixed nits reported by Daniel Steffen in theandreas_kupries2006-09-252-4/+9
| | | | TIP#268 changes.
* 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-252-9/+35
|
* fix line endingsdgp2006-09-252-6340/+6340
|
* Fix [Bug 1564677]dkf2006-09-252-6331/+6340
|
* * generic/tclStringObj.c (STRING_SIZE): fix allocation forMiguel Sofer2006-09-242-2/+7
| | | | 0-length strings. This is coverity's bugs #54-5
* * generic/tclParse.c (Tcl_ParseCommand): also return an error ifMiguel Sofer2006-09-242-2/+7
| | | | start==NULL and numBytes<0. This is coverity's bug #20
* * generic/tclInt.h: Moved TIP#268's field 'packagePrefer' to theandreas_kupries2006-09-222-11/+14
| | | | end of the structure, for better backward compatibility.
* TIP#268 IMPLEMENTATIONandreas_kupries2006-09-2216-208/+1455
| | | | | | | | | | | | | | | | | | | | * 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-222-29/+35
|
* * generic/tclUtil.c: Dropped ParseInteger() routine.dgp2006-09-212-80/+20
| | | | TclParseNumber covers the task just fine.
* correct registry version numbervincentdarley2006-09-211-2/+2
|
* fix line endingsdgp2006-09-201-5162/+5162
|
* Fix nasty bug with limits, vwait's (C) traces, and interpreter restart...dkf2006-09-192-5161/+5168
|
* * generic/tclExecute.c (INST_EXPON): Native type overflow detectiondgp2006-09-193-47/+21
| | | | | | | * 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].
* * tests/http.test (http-5.1): bump http to 2.5.3dgp2006-09-163-6/+8
| | | | | * unix/Makefile.in: * win/Makefile.in:
* * library/http/http.tcl: Change " " -> "+" url encoding mappinghobbs2006-09-164-6/+12
| | | | | * library/http/pkgIndex.tcl: to " " -> "%20" as per RFC 3986. * tests/http.test (http-5.1): bump http to 2.5.3
* * unix/configure.in (HAVE_MTSAFE_GETHOST*): Modified to recognizeandreas_kupries2006-09-123-1/+34
| | | | | | HP-UX 11.00 and beyond as having mt-safe implementations of the gethost functions. * unix/configure: Regenerated, using autoconf 2.59
* * unix/tclUnixCompat.c (PadBuffer): Fixed bug in calculation ofandreas_kupries2006-09-122-5/+17
| | | | | the increment needed to align the pointer, and added documentation explaining why the macro is implemented as it is.
* Added tommath_(super)class headers to include installpatthoyts2006-09-112-1/+4
|
* Fixed error launching win98 testpatthoyts2006-09-111-3/+3
|
* Updated to install http, tcltest and msgcat as Tcl Modules (as per Makefile.in).patthoyts2006-09-113-48/+68
|
* * unix/Makefile.in (install-libraries): Fixed typo tcltest 2.3.9 -> 2.3.0.andreas_kupries2006-09-112-2/+6
|
* * unix/tclUnixCompat.c: make compatLock static and only declare it whendas2006-09-112-107/+116
| | | | | it will actually be used; #ifdef parts of TSD that are not always needed; adjust #ifdefs to cover all possible cases; fix whitespace.
* * tests/msgcat.test: Bumped version in auxiliary files as well.andreas_kupries2006-09-113-4/+9
| | | | * doc/msgcat.n:
* bump msgcat version to 1.4.2Kevin B Kenny2006-09-113-6/+11
|
* * library/msgcat/msgcat.tcl: Removed some unneeded [uplevel]s.dgp2006-09-112-5/+8
|
* * generic/tclExecute.c: Corrected INST_EXPON flaw that treateddgp2006-09-113-5/+12
| | | | * tests/expr.test: $x**1 as $x**3. [Bug 1555371]
* * doc/tcltest.n: Bump to version tcltest 2.3.0 to accountdgp2006-09-118-19/+27
| | | | | | | | | * library/tcltest/pkgIndex.tcl: for new "-verbose line" feature. * library/tcltest/tcltest.tcl: * unix/Makefile.in: * win/Makefile.in: * win/makefile.bc: * win/makefile.vc:
* * library/msgcat/msgcat.tcl: Bump to version msgcat 1.4.2 to accountdgp2006-09-103-3/+8
| | | | * library/msgcat/pkgIndex.tcl: for modifications.
* * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback ofdas2006-09-1011-746/+907
| | | | | | | | | | | | | | | | | | * tests/msgcat.test: default msgcat locale to * unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier if available (via private ::tcl::mac::locale global, set at interp init when on Mac OS X 10.3 or later with CoreFoundation). * library/tcltest/tcltest.tcl: add 'line' verbose level: prints source * doc/tcltest.n: file line information of failing tests. * macosx/Tcl.xcodeproj/project.pbxproj: add new tclUnixCompat.c file; revise tests target to use new tcltest 'line' verbose level. * unix/configure.in: add descriptions to new AC_DEFINEs for MT-safe. * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* Added special handling for Darwin where gethostbyname/addr are actuallyvasiljevic2006-09-084-15/+53
| | | | MT-safe per-se.
* * unix/tclUnixCompat.c: Fixed conditions for CopyArray/CopyString,andreas_kupries2006-09-082-6/+11
| | | | and CopyHostent. Also fixed bad var names in TclpGetHostByName.
* unix/tclUnixCompat.c: Added fallback to MT-unsafevasiljevic2006-09-072-21/+69
| | | | | | library calls if TCL_THREADS is not defined. Fixed alignment of arrays copied by CopyArrayi() to be on the sizeof(char *) boundary.
* Rewritten MT-safe wrappers to return ptrs to TSD storage.vasiljevic2006-09-076-217/+169
|