summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
Commit message (Collapse)AuthorAgeFilesLines
* merge trunkjan.nijtmans2013-10-171-0/+0
|\
| * Fix execute permission on many files which shouldn't have it.jan.nijtmans2013-10-171-0/+0
| |\
| | * Fix execute permission on many files which shouldn't have it.jan.nijtmans2013-10-171-0/+0
| | |
* | | restore all #ifdef TCL_WIDE_INT_IS_LONG, which were accidently removed in ↵jan.nijtmans2013-08-141-0/+4
| | | | | | | | | | | | [19ff9b95e1]
* | | merge trunkjan.nijtmans2013-05-061-4/+0
|\ \ \ | |/ /
* | | Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as ↵jan.nijtmans2013-04-231-2/+2
|\ \ \ | |/ / | | | | | | TCL_WIDE_INT_IS_LONG
| * | Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-2/+2
| |\ \ | | |/ | | | | | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
* | | eliminate unused variablejan.nijtmans2012-11-191-2/+0
| | |
* | | Burn the octal bridges. We're not goin' back.dgp2012-11-161-69/+1
| | |
* | | Kill Octal; bump to 9.0a0; make test suite work again.dgp2012-11-151-1/+1
|/ /
* | Remove unused variable mantDIGIT.dgp2012-06-051-3/+0
|\ \ | |/
| * Remove unused variable mantDIGIT.dgp2012-06-051-3/+0
| |
* | unused static array wtensjan.nijtmans2011-09-061-9/+0
|\ \ | |/
| * unused static array wtensjan.nijtmans2011-09-061-10/+0
| |
* | 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex).dgp2011-09-011-0/+3
|\ \ | |/ | | [scan Inf %g] is portable; remove constraint.
| * 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex)dgp2011-09-011-0/+3
| | | | | | [scan Inf %g] is portable; remove constraint.
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-151-1/+1
| |
* | * generic/tclAssemnbly.c: Plug another memory leak. [Bug 3384840]Kevin B Kenny2011-08-061-0/+3
| | | | | | | | * generic/tclStrToD.c: Plug another memory leak. [Bug 3386975]
* | Plugged a memory leak in double->stringKevin B Kenny2011-08-061-3/+2
|\ \ | |/ | | conversion. [Bug 3386975]
| * Plugged a memory leak in double->stringKevin B Kenny2011-08-061-3/+2
| | | | | | conversion. [Bug 3386975]
* | Use Tcl_PrintfObj to generate more (complex) error messages.dkf2011-08-051-4/+2
| |
* | Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507]Kevin B Kenny2011-07-021-10/+48
|\ \ | |/
| * Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507]Kevin B Kenny2011-07-021-10/+48
| |
* | 3315098 Mem leak fix from Gustaf Neumann.dgp2011-06-131-1/+1
|\ \ | |/
| * 3315098 Mem leak fix from Gustaf Neumann.dgp2011-06-131-1/+1
| |
* | New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()dgp2011-04-281-3/+3
|\ \ | |/ | | Use to replace calls to isspace() and their /* INTL */ risk.
| * New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()dgp2011-04-281-3/+3
| | | | | | Use to replace calls to isspace() and their /* INTL */ risk.
* | Replaced another couple of 'double' declarations with 'volatile Kevin B Kenny2011-04-021-2/+4
|\ \ | |/ | | | | double' to work around misrounding issues in mingw-gcc 3.4.5.
| * Replaced another couple of 'double' declarations with 'volatile Kevin B Kenny2011-04-021-2/+4
| | | | | | | | double' to work around misrounding issues in mingw-gcc 3.4.5.
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-3/+2
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-3/+0
| | | | | | more harm than good. Purged them.
| * * doc/tclvars.n:Kevin B Kenny2011-01-151-7/+23
| | | | | | | | | | | | | | | | | | | | * generic/tclStrToD.c: * generic/tclUtil.c (Tcl_PrintDouble): * tests/util.test (util-16.*): Restored full Tcl 8.4 compatibility for the formatting of floating point numbers when $::tcl_precision is not zero. Added compatibility tests to make sure that excess trailing zeroes are suppressed for all eight major code paths. [Bug 3157475]
| * Whitespace, and fix broken backport of ilimi* initialization.andreas_kupries2010-12-011-66/+66
| |
| * * generic/tclStrToD.c (SetPrecisionLimits, TclDoubleDigits):Kevin B Kenny2010-12-011-4/+11
| | | | | | | | | | | | | | | | Added meaningless initialization of 'i', 'ilim' and 'ilim1' to silence warnings from the C compiler about possible use of uninitialized variables, Added a panic to the 'switch' that assigns them, to assert that the 'default' case is impossible. [Bug 3124675]
| * * generic/tclInt.decls: Backport of Kevin B. Kenny's work onandreas_kupries2010-11-301-320/+2495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: the Tcl Head, with help from Jeff Hobbs. * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them. * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclTomMathDecls.h: Regenerated.
| * [Bug #3005233] fix for build on OpenBSD vaxnijtmans2010-05-211-6/+8
| |
| * * 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].
| * * generic/tclCmdIL.c: Removed unused variables.dgp2009-07-161-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCompile.c: * generic/tclVar.c: * unix/tclUnixChan.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]
| * * 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 * unix/configure: by Michael Schlenker. configure regen'd.
* | Removed code that suppressed zeroes in a context where zeroes cannot appear.Kevin B Kenny2011-01-151-6/+1
| |
* | * doc/tclvars.n:Kevin B Kenny2011-01-151-6/+26
| | | | | | | | | | | | | | | | | | | | * generic/tclStrToD.c: * generic/tclUtil.c (Tcl_PrintDouble): * tests/util.test (util-16.*): Restored full Tcl 8.4 compatibility for the formatting of floating point numbers when $::tcl_precision is not zero. Added compatibility tests to make sure that excess trailing zeroes are suppressed for all eight major code paths. [Bug 3157475]
* | * generic/tclStrToD.c: Tidy up code so that more #ifdef-fery isdkf2010-12-071-1115/+1127
| | | | | | | | | | quarantined at the front of the file and function headers follow the modern Tcl style.
* | silence gcc warning when using -Wwrite-stringsnijtmans2010-12-031-2/+7
| | | | | | | | | | | | silence gcc warning for non-IEEE platforms [Patch #3116490] cross-compile Tcl mingw32 on unix. This makes it possible to cross-compile Tcl/Tk for Windows (either 32-bit or 64-bit) out-of-the-box on UNIX, using mingw-w64 build tools.
* | * generic/tclStrToD.c (SetPrecisionLimits, TclDoubleDigits):Kevin B Kenny2010-12-011-4/+11
| | | | | | | | | | | | | | | | Added meaningless initialization of 'i', 'ilim' and 'ilim1' to silence warnings from the C compiler about possible use of uninitialized variables, Added a panic to the 'switch' that assigns them, to assert that the 'default' case is impossible. [Bug 3124675]
* | fix gcc 64-bit warnings: cast from pointer to integer of different sizenijtmans2010-12-011-2/+2
| | | | | | | | fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
* | added missing casts that MSVC complained about and deleted unused variableKevin B Kenny2010-11-291-5/+5
| |
* | 2010-11-29 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2010-11-281-298/+2474
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclInt.h: * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them.
* | [Bug #3005233] fix for build on OpenBSD vaxnijtmans2010-05-211-3/+5
| |
* | Fix [Bug 2996549]: Failure in expr.test on Win32nijtmans2010-05-171-3/+7
| |