summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [Bug 2996549]: Failure in expr.test on Win32nijtmans2010-05-171-3/+7
| | | FossilOrigin-Name: 0958a5f61a28156f9e9759da2cbd3134a0e14634
* CONSTify various useful internal functionsnijtmans2010-05-031-6/+6
| | | | | | | (TclBignumToDouble, TclCeil, TclFloor), and related tommath functions. FossilOrigin-Name: 729ffb738f1c793649d95c386f783e837dcd3711
* If tclInt.h or tclPort.h is alreadynijtmans2010-04-271-8/+3
| | | | | | | | | included, don't include <limits.h> again. Follow-up to [Bug 2991415]: tclport.h #included before limits.h See comments in [Bug 2991415] FossilOrigin-Name: b7c55dd4bff714c0d799cc3972956b79eee2a6ff
* * generic/tclStrToD.c: [Bug 2952904]: Defer creation of the smallestkennykb2010-04-021-5/+3
| | | | | | | | floating point number until it is actually used. (This change avoids a bogus syslog message regarding a 'floating point software assist fault' on SGI systems.) FossilOrigin-Name: 0ff9783605083d89f654e144c51f2583c9d5423a
* Code Audit results:dkf2010-03-051-18/+18
| | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601
* Pure whitespace changes, changing to follow Engineering Manual style.dkf2010-02-241-8/+8
| | | FossilOrigin-Name: c81eddebbb969209a42ab4c210dd62f3080909d4
* * generic/tclStrToD.c: Correct conditional compile directives todgp2009-12-071-4/+5
| | | | | | | better detect the toolchain that needs extra work for proper underflow treatment instead of merely detecting the mips platform. [Bug 2902010]. FossilOrigin-Name: a453455af3c0519df2677da9b01671f520c31c42
* * generic/tclBinary.c: Removed unused variables.dgp2009-07-161-1/+17
| | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclHash.c: * generic/tclIOUtil.c: * generic/tclVar.c: * generic/tclBasic.c: Silence compiler warnings about ClientData. * generic/tclProc.c: * generic/tclScan.c: Typo in ACCEPT_NAN configuration. * generic/tclStrToD.c: Set floating point control register on MIPS systems so that the gradual underflow expected by Tcl is in effect. [Bug 2819200] FossilOrigin-Name: b0e94fe52cf1bae5acfd5a9ed00d80e25c680b3c
* Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-4/+4
| | | | | etc.) FossilOrigin-Name: cd3c38f00ada216d7bc93560d3d70012c2918343
* Generate errorcodes for more cases.dkf2009-01-081-3/+5
| | | FossilOrigin-Name: a12728cbb91807a88ca7e1a6e8d4678ca5eee07b
* TIP #343 IMPLEMENTATION - A Binary Specifier for [format/scan]ferrieux2008-12-101-3/+9
| | | FossilOrigin-Name: 197d47d29dbefa3bfa64f975ed2dbbed6fcf8271
* * generic/tclStrToD.c: Applied patch for [Bug 1839067] (fpandreas_kupries2008-04-011-1/+20
| | | | | | | * unix/tcl.m4: rounding setup on solaris x86, native cc), provided by Michael Schlenker. FossilOrigin-Name: 8f2f6765e304bd667b457de7530859d4057df6f2
* * generic/tclStrToD.c: Resolve identifier conflict over "pow10"dgp2008-03-131-9/+9
| | | | | | | with libm in Cygwin and DJGPP. Thanks to Gordon Schumacher and Philip Moore. [Patch 1800636] FossilOrigin-Name: 26011d35f1edfb9657d1871763b4a3aadfd0cdc3
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* More minor cleanupdkf2007-11-181-111/+124
| | | FossilOrigin-Name: 2746b844cadd89c74077393da3fe02624ac8b162
* * generic/tclEnv.c (ReplaceString): Clear memory correctly whenkennykb2007-04-231-19/+29
| | | | | | | | | | | growing the cache to avoid reads of uninitialised data. * generic/tclStrToD.c (AccumulateDecimalDigit): Fixed a mistake where we'd run beyond the end of the 'pow10_wide' array if a number begins with a string of more than 'maxpow10_wide' zeroes. Both these issues reported under [Bug 1705778] - detected with the existing test suite, no new regression tests required. FossilOrigin-Name: 10fb68199ea8f71f776217823469af7a4320b8b2
* Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-9/+9
| | | FossilOrigin-Name: 645aed2fcdcd55ca81df269a4ea262eeca2b9ff2
* Handle creation of Tcl_Objs from constant strings better (easier to use, moredkf2007-04-101-2/+4
| | | | | | efficient). After [Patch 1529526] (afredd) FossilOrigin-Name: 4d69119aadb4298f8e994440eb988c6c46396086
* various "const" additions, in line with TIP #27nijtmans2007-02-201-8/+8
| | | FossilOrigin-Name: 81ea4e1335f3c78465e90ec021758c096ba9b544
* TIP#270 IMPLEMENTATIONdgp2006-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: New public routines Tcl_ObjPrintf, * generic/tclStringObj.c: Tcl_AppendObjToErrorInfo, Tcl_Format, * generic/tclInt.h: Tcl_AppendLimitedToObj, Tcl_AppendFormatToObj and Tcl_AppendPrintfToObj. Former internal versions removed. * generic/tclDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclBasic.c: Updated callers. * generic/tclCkalloc.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclIORChan.c: * generic/tclIOUtil.c: * generic/tclMain.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclPkg.c: * generic/tclProc.c: * generic/tclStrToD.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c: FossilOrigin-Name: c06db721ddaef087134ceb16494452e128734656
* Various minor object file size efficiency fixes. [Bug 1530474]dkf2006-08-101-2/+2
| | | FossilOrigin-Name: a09967381cf3a88dc91d8eb051a73d82af962eb8
* * generic/regc_locale.c (cclass):das2006-07-201-7/+7
| | | | | | | | | | | | | | | * 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. FossilOrigin-Name: 25ff7e8b0a8a08f1b6f8c86b6c7f9f5fe7f17e3d
* * generic/tclIOUtil.c: Changed default configuration todgp2006-06-211-26/+3
| | | | | | | | | | | | | | | | | | | | | | * 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. FossilOrigin-Name: 0bde9c44bb678e2f905065a787929a5efba184d8
* * generic/tclBinary.c: Revised the handling of the Q and q formatdgp2006-04-261-1/+17
| | | | | | | | * generic/tclInt.h: specifiers for [binary] to account for the * generic/tclStrToD.c: "middle endian" floating point format used in Nokia N770. FossilOrigin-Name: faef39639ad5b93fb384ad83a790f408424b5075
* fix for Martin Lemburg's DST conversion bug.kennykb2006-04-191-2/+65
| | | | | | http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/9a8b15a4dfc0b7a0 FossilOrigin-Name: 48bbbafac153ba24a73fa999ec3236cf84e4b468
* * generic/tclStrToD.c: One of the branches of AccumulateDecimalDigitdgp2006-03-211-1/+2
| | | | | | * tests/parseExpr.test: did not. [Bug 1451233] FossilOrigin-Name: ac158a0c4f4a5085bf8f77e0839e7617ba4b863e
* Export Tcl_InitBignumFromDoublekennykb2005-12-271-5/+5
| | | FossilOrigin-Name: 8b3c81ab3750072e93e91fee4b70127c36b1bfdf
* 2005-12-19 Don Porter <dgp@users.sourceforge.net>dgp2005-12-191-13/+16
| | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c: Modified [string is double] to use * tests/string.test: TclParseNumber() to parse trailing whitespace. Ensures consistency, and makes it easier to cleanup after invalid internal reps left behind by parsing [Bugs 1360432 1382287]. * generic/tclParseExpr.c: Added TCL_PARSE_NO_WHITESPACE to * generic/tclScan.c: TclParseNumber() calls since [scan] and * tests/scan.test: [expr] parsing don't want spaces in parsed numbers. * generic/tclInt.h: Added TCL_PARSE_NO_WHITESPACE flag to the * generic/tclStrToD.c: TclParseNumber() interface. FossilOrigin-Name: 7245b18069391be3d914995ab419daeede7ced6e
* * generic/tclStrToD.c: More data in the "can't happen" Tcl_Panicdgp2005-11-141-2/+3
| | | | | | to aid debugging. FossilOrigin-Name: bb4bc0accfa3f2387495d8d7d8fdcc8a0eece5f0
* * generic/tclInt.h: Revised TclParseNumber interface to enabledgp2005-11-121-101/+134
| | | | | | | | * generic/tclScan.c: revision to the [scan] command implementation * generic/tclStrToD.c: to permit tests scan-4.44,55 to pass again. [Bug 1348067]. FossilOrigin-Name: 5b3d7732b515626e4abf24a6ef26014415d8b894
* Bug 1334461kennykb2005-10-211-1/+2
| | | FossilOrigin-Name: 36585dd60c1f05e8ba91742e4463f2dd49888d10
* remove C++ commentskennykb2005-10-211-4/+4
| | | FossilOrigin-Name: 387b28ffcded11d3eb6c637af2dba80269865e17
* Bug 1334461kennykb2005-10-211-2/+4
| | | FossilOrigin-Name: bc01fd42a3fba3eefed4b2810017494ee30bd9a2
* Formatting cleanup to more accurately match the coding standards ofdkf2005-10-131-734/+713
| | | | | | the rest of the core. FossilOrigin-Name: edb51d497a82e652d7b10614c306449f69bbeb4a
* * generic/tclStrToD.c (TclParseNumber): Missing goto caused crashdgp2005-10-131-1/+2
| | | | | | when parsing "Na". [Bug 1325833] FossilOrigin-Name: 5415c75194cdf735c8ad9f159b5577ece5df69ca
* * generic/tclBasic.c:msofer2005-10-091-2/+3
| | | | | | | | | * generic/tclExecute.c: * generic/tclStrToD.c: * generic/tclStringObj.c: initialise variables to avoid compiler warnings ([Bug 1320818] among others). FossilOrigin-Name: 6c384e90de50cba8fecc956a70e345f007fdfb8b
* TIP#237 IMPLEMENTATIONdgp2005-10-081-643/+1919
| | | | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code. FossilOrigin-Name: 83fdb360a9aec952bc3ad040afe39106bf9e5ec3
* fix formatting of fp number with smallest significandkennykb2005-08-241-2/+2
| | | FossilOrigin-Name: 7c355ef822d4c536791c88819feab4e85ffd297b
* Tk Bug 1227781kennykb2005-07-161-1/+3
| | | FossilOrigin-Name: 9a6ea914091d41bf3b5d33b3c622f680fdbdc919
* Much whitespace/style tidying updkf2005-07-051-622/+590
| | | FossilOrigin-Name: 720eee7591d8ac6927e9371f7e32d4b17200ea12
* Add explanatory comment about static unprotected variables.dkf2005-06-261-1/+7
| | | FossilOrigin-Name: e9e2d937729329ed454cf9df1f401a88a12476b8
* Added UCHAR's to ctype macros in tclStrToD.ckennykb2005-05-111-6/+6
| | | FossilOrigin-Name: b5d1ecb4f01878aeefc0d11d79960d63c8be02e5
* Fixes for C++-style comment and bad NaN on PA-RISCkennykb2005-05-101-3/+16
| | | FossilOrigin-Name: a4754204f2fb6d16f60635d63fe33606df6f94d5
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232kennykb2005-05-101-0/+1361
FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e