summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [ff658e10fc]: tip 551 in 8.7a4 0b1111_1111 not working. Also fix some ↵jan.nijtmans2021-01-151-9/+11
| | | | indenting in code
* Make tclStrToD.c compile on systems without inttypes.hjan.nijtmans2021-01-111-0/+5
|
* Make Tcl independent from exact definition of TCL_LL_MODIFIER. In ↵jan.nijtmans2021-01-111-5/+5
| | | | tclStrToD.c we need an _exact_ 64-bit type, _at least_ 64-bit is not good enough here.
* Omit -Wdeclaration-after-statement from CFLAGS: No longer needed since we ↵jan.nijtmans2021-01-081-4/+4
| | | | | stopped support for MSVC 6++ Change Tcl_WideInt -> long long in various places: Tcl_WideInt could be a 128-bit type, we don't want that everywhere.
* Revise UWIDE_MAX and friendsjan.nijtmans2021-01-071-5/+5
|
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-1/+1
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Merge 8.6jan.nijtmans2020-11-261-2/+2
|\
| * Get rid of "register" keyword, forbidden in c++20.jan.nijtmans2020-11-261-2/+2
| | | | | | Fix some more warnings, discovered in c20/c++20 mode
* | 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