Manifest of check-in
[d0cad63004]
-
* tests/pkg.test: Added test for version comparison at the 32bit
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.
by
andreas_kupries on
2006-09-27 20:22:40.
B 3c9c0b85ca35e930d3e194faff0c6858b354e5ff
C \n\t*\stests/pkg.test:\sAdded\stest\sfor\sversion\scomparison\sat\sthe\s32bit\n\t\s\sboundary.\s[SF\sTcl\sBug\s1563836].\n\n\t*\sgeneric/tclPkg.c:\s[SF\sTcl\sBug\s1563836].\sRewrote\sCompareVersion\n\t\s\sto\sperform\sstring\scomparison\sinstead\sof\snumeric.\sThis\sbreaks\n\t\s\sthrough\sthe\s32bit\slimit\son\sversion\snumbers.\sSee\scode\sfor\sdetails\n\t\s\s(handling\sof\sleading\szeros,\ssigns,\setc.).\sun-CONSTed\ssome\n\t\s\sarguments\sof\sCompareVersions,\sRequirementSatisfied,\sand\n\t\s\sAllRequirementsSatisfied.\sThe\snew\scompare\smodifies\sthe\sstring\n\t\s\s(temporary\sstring\sterminators).\sAll\scallers\suse\sheap-allocated\n\t\s\sver-intreps,\sso\swe\sare\sgood\swith\sthat.\n
D 2006-09-27T20:22:40
F ChangeLog 9a3f7102422ab22fb8c2851f86abfb27a67f56d6
F doc/Encoding.3 38e1672695ee8565192194c58febbafa98b95cc3
F generic/tcl.decls 50402be4388e0f421ada2fc979419bf4e9ebf61e
F generic/tclDecls.h 4cb82c8caf3ddba39ff5e88f7362e15583a9f976
F generic/tclEncoding.c bf8a17b66be11686aef21580f0efaf7dbb67caba
F generic/tclFileName.c dd4ecca4098764d1ebcbaf0c3d0bd1ca226e132a
F generic/tclPkg.c b4fe2b02232c3bc414077257cccf000e3a2d055a
F tests/pkg.test f426079434dab9d006be9fef2cd1c9dccc5bcd52
P 668bd0bb045dc737d238599f636d5045cd181711
U andreas_kupries
Z ed4f4380de377dc90ed51de4abec6a3d