summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
Commit message (Collapse)AuthorAgeFilesLines
* backport numeric white-space bug fix from 9.0griffin2023-09-021-83/+86
|
* Correct spelling errors in comments and documentation, but also a non-comment pooryorick2023-04-121-3/+3
| | | corrections in history.tcl and tcltest.test.
* Merge 8.6jan.nijtmans2023-03-301-1/+1
|\
| * Fix [0cb3554903]: macOS 13 SDK deprecates sprintf(). But better not use it ↵jan.nijtmans2023-03-301-1/+1
| | | | | | | | on other platforms either.
| |
| \
| \
| \
*---. \ Bug [e3dcab1d14] - merge fix from 8.6Kevin B Kenny2023-01-221-30/+31
|\ \ \ \ | | | |/
| | | * Missed one more off-by-one error, also, tests misnumbered for merge forward.Kevin B Kenny2023-01-221-1/+1
| | |/ | |/|
| * | Remove unneeded hard-coded array sizeKevin B Kenny2023-01-221-1/+1
| |/
| * Bug [e3dcab1d14] fixKevin B Kenny2023-01-221-29/+30
| |
* | Merge 8.6jan.nijtmans2022-07-221-22/+24
|\ \ | |/
| * amend to [f3db59139e] (fix [713653b951]) - i386 only, resolve mixed ↵sebres2022-07-221-21/+24
| | | | | | | | declarations and code (forbiddeen in ISO C)
* | Merge 8.6jan.nijtmans2022-07-171-13/+29
|\ \ | |/
| * Fix [713653b951]: Floating point precision problems on x86 musljan.nijtmans2022-07-171-13/+29
| |\
| | * Fix [713653b951]: Floating point precision problems on x86 musljan.nijtmans2022-07-171-121/+192
| | |\
| | | * Restore FP control word on conversion of zero values.Kevin B Kenny2022-07-151-13/+29
| | |/ | |/| | | | | | | | | | | | | | | | Sneak path existed that failed to restore the floating point control word when scanning a zero value. The result was that floating point rounding was incorrectly left set to 53-bit significance, round-to-even, which is incompatible with the math library from musl.
| | * Add FALLTHRU markers, to help GCC emit less false warningsjan.nijtmans2021-08-231-6/+8
| | |
* | | Rename macro's TclListObjGetElements -> TclListObjGetElementsM and ↵jan.nijtmans2022-05-171-1/+1
| | | | | | | | | | | | TclListObjLength -> TclListObjLengthM (prevent conflict with TIP #616)
* | | Deprecate internal macro's TclIsInfinite() and TclIsNan(), since C99 has ↵jan.nijtmans2022-02-171-1/+1
| | | | | | | | | | | | isinf() and isnan()
* | | Merge 8.6. Remove some Tcl_Panic()'s which can never happenjan.nijtmans2022-02-171-11/+6
|\ \ \ | |/ /
| * | Addendum to [7deeddb36]: Use WIDE_MIN/WIDE_MAX in more placesjan.nijtmans2022-02-171-6/+5
| | |
* | | Merge 8.6jan.nijtmans2022-02-161-6/+6
|\ \ \ | |/ /
| * | Fix [89de498973]: signed integer overflow in TclParseNumber()jan.nijtmans2022-02-161-4/+4
| | |
* | | Merge 8.6jan.nijtmans2021-12-071-16/+69
|\ \ \ | |/ /
| * | Fix [cea2c63928]: Address -fsanitize=shift-exponent complaints in ↵jan.nijtmans2021-12-071-16/+69
| | | | | | | | | | | | TclParseNumber()
| * | IntRep -> InternalRep. Internal changes only.jan.nijtmans2021-10-191-2/+2
| | |
* | | Change "IntRep" to "InternalRep", as discussed in the Tcl Core mailing listjan.nijtmans2021-10-061-5/+5
| | |
* | | 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
| |\ \ \ \ \ | | |/ / / /