summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2020-06-041-2/+2
|\
* \ tip-551 implementation.griffin2020-05-301-6/+87
|\ \
| * | Update for TIP-551: griffin2020-05-231-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add documentation for this feature to the expr man page. The keyword "integer value" has been added to the string and expr man page. Added TCL_PARSE_NO_UNDERSCORE flag so that the digit separator can be disabled when need when calling TclParseNumber. Disabled digit separator in the "scan" command when scanning integers and floating-point numbers. This is the one place where existing code may rely on number parsing to stop at an underscore. Disallow underscore between the leading 0 and the radix specifiers 'x', 'o', 'b', and 'd'. Added tests for disallowed underscore use and scan with underscores between digits in the source string.
| * | Initial implementation for TIP-551 Permit underscores in numeric literalsgriffin2019-12-071-4/+83
| | |
* | | Merge 8.6jan.nijtmans2020-04-141-3/+3
|\ \ \ | | |/ | |/|
| * | Merge 8.5. Failing tests highlight ticket [1b1f5f0b53].dgp2020-04-131-3/+3
| |\ \
| | * | Guarantee TclNeedSpace and TclFindElement have common definition of whitespacedgp2020-04-091-3/+3
| | | | | | | | | | | | | | | | by having both call the same routine. Create a macro form to contain performance costs and adapt callers.
* | | | Merge 8.6jan.nijtmans2020-03-181-23/+23
|\ \ \ \ | |/ / /
| * | | More uppercase HEX representations in source-code.jan.nijtmans2020-03-181-23/+23
| | | |
| * | | Better error-handling in some libtommath calls.jan.nijtmans2020-01-231-2/+2
| | | |
| * | | A few more "break" statements, so any compiler knows these are no ↵jan.nijtmans2020-01-151-0/+1
| | | | | | | | | | | | | | | | FALLTHROUGH situations.
* | | | More TCL_UNUSEDdgp2020-03-091-12/+6
| | | |
* | | | Merge 8.7jan.nijtmans2020-02-131-206/+370
|\ \ \ \
| * \ \ \ Fix conflict between (unpatched) tommath.h and tcl.h. See also ↵jan.nijtmans2020-02-021-4/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | [https://github.com/libtom/libtommath/pull/473]
| | * | | | Attempt to resolve a conflict between (unmodified) tommath.h and tcl.h in ↵jan.nijtmans2020-01-131-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | the definition of mp_int. See: [https://github.com/libtom/libtommath/pull/473]
| * | | | | Merge 8.7. All calls using MP_WUR handled now.jan.nijtmans2020-01-221-47/+84
| |\ \ \ \ \ | | |/ / / /
| * | | | | Merge 8.7, more WIPjan.nijtmans2020-01-211-32/+63
| |\ \ \ \ \ | | |/ / / /
| * | | | | Merge 8.7, more WIPjan.nijtmans2020-01-171-48/+90
| |\ \ \ \ \ | | |/ / / /
| * | | | | More WIPjan.nijtmans2020-01-101-24/+41
| |\ \ \ \ \ | | |/ / / /
| * | | | | Start handling WUR (Warn Unused Result) in all tommath calls. WIP, not ↵jan.nijtmans2020-01-091-44/+83
| |/ / / / | | | | | | | | | | | | | | | complete yet.
| * | | | Merge 8.6jan.nijtmans2020-01-081-14/+8
| |\ \ \ \ | | |/ / /
| | * | | Use _copysign on Windows always (available from float.h). Use mp_iszero() ↵jan.nijtmans2020-01-081-20/+14
| | |\ \ \ | | | |/ / | | | | | | | | | | whenever appropriate.
| | | * | Code cleanup (mostly comments, backported from 8.6).jan.nijtmans2020-01-081-1035/+1040
| | | | |
* | | | | Merge 8.7jan.nijtmans2020-01-071-36/+119
|\ \ \ \ \ | |/ / / /
| * | | | Some eol whitespace eliminationsjan.nijtmans2020-01-071-6/+6
| | | | |
| * | | | Restore the build by providing a copysign replacement for old MSVC versions.fvogel2020-01-021-0/+12
| |\ \ \ \ | | |/ / /
| | * | | Restore the build by providing a copysign replacement for old MSVC versions.fvogel2020-01-021-0/+12
| | |\ \ \ | | | |/ /
| | | * | Restore the build by providing a copysign replacement for old MSVC versions.fvogel2020-01-021-0/+12
| | | | |
| * | | | Merge Tcl 8.6 changes to deal with integer overflow in the exponent, and ↵Kevin B Kenny2019-12-271-36/+106
| |\ \ \ \ | | |/ / / | | | | | | | | | | floating point overflow in the significand, of floating point input conversion (Bug [1de6b0629e]
| | * | | Merge Tcl 8.5 changes to deal with integer overflow in the exponent, and ↵Kevin B Kenny2019-12-271-36/+106
| | |\ \ \ | | | |/ / | | | | | | | | | | floating point overflow in the significand, of floating point input conversion (Bug [1de6b0629e]
| | | * | Add test cases that used to cause floating point overflow in computing the ↵Kevin B Kenny2019-12-261-31/+101
| | | | | | | | | | | | | | | | | | | | correction term in floating point input conversion. Fix exponent overflow in floating point input conversion, and floating-point overflow in the significand in input conversion.
| | | * | Fix parsing bug when (numSigDigs == 0).dgp2019-12-231-4/+4
| | | | |
| | | * | Assign a double literal to a double variable. No point in requiring conversion.dgp2019-12-221-1/+1
| | | | |
| * | | | Add FALLTHRU markers, eliminating gcc warning using -Wextrajan.nijtmans2019-12-241-0/+1
| | | | |
* | | | | Merge 8.7jan.nijtmans2019-12-131-22/+22
|\ \ \ \ \ | |/ / / /
| * | | | Merge 8.7. ignore MP_WUR for mp_neg() calls with equal arguments (even ↵jan.nijtmans2019-11-181-2/+2
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | though MP_WUR is not enabled yet)
| * | | | Merge 8.7. Finish implementation.jan.nijtmans2019-11-121-19/+19
| |\ \ \ \ | | |/ / /
| * | | | Merge 8.7jan.nijtmans2019-11-111-16/+16
| |\ \ \ \ | | |/ / /
| * | | | Re-base to core-8-branchjan.nijtmans2019-11-011-1/+1
| |\ \ \ \
| | * | | | Merge 8.7. Complete implementation for MSVC and for UNIX.jan.nijtmans2019-04-091-1/+1
| | | | | |
* | | | | | Merge 8.7jan.nijtmans2019-11-091-16/+16
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | Now that libtommath has mp_init_l/mp_init_ll/mp_init_ull, use those instead ↵jan.nijtmans2019-11-081-16/+16
| |/ / / / | | | | | | | | | | | | | | | of the legacy TclBNInitBignumFromLong/TclBNInitBignumFromWideInt/TclBNInitBignumFromWideUInt
* | | | | Merge 8.7jan.nijtmans2019-11-041-20/+20
|\ \ \ \ \ | |/ / / /
| * | | | Merge 8.6jan.nijtmans2019-10-301-15/+15
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | Change mp_isodd() (back) from libtommath stub entry to macro. libtommath ↵jan.nijtmans2019-10-301-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | changed it back to macro too in its master branch, we better do the same. Better usage of mp_isneg() macro, in stead of directly comparing sign with MP_NEG/MP_ZPOS.
| * | | | Combine TCL_DD_SHORTEN_FLAG and TCL_DD_SHORTEST to be the same flag (which ↵jan.nijtmans2019-10-291-5/+5
| | | | | | | | | | | | | | | | | | | | it is .... actually)
* | | | | Merge 8.7jan.nijtmans2019-10-251-13/+13
|\ \ \ \ \ | |/ / / /
| * | | | Merge 8.6. jan.nijtmans2019-10-251-13/+13
| |\ \ \ \ | | |/ / / | | | | | Also remove unused variable in unix/tclUnixFile.c
| | * | | Put #define's in alphabetical order. jan.nijtmans2019-10-251-13/+13
| | | | | | | | | | | | | | | | | | | | Use MP_DIGIT_BIT in stead of (deprecated) DIGIT_BIT everywhere. (just code cleanup, nothing funcional)
* | | | | Merge 8.7jan.nijtmans2019-10-241-17/+17
|\ \ \ \ \ | |/ / / /