diff options
author | griffin <briang42@easystreet.net> | 2020-05-23 03:32:30 (GMT) |
---|---|---|
committer | griffin <briang42@easystreet.net> | 2020-05-23 03:32:30 (GMT) |
commit | 6d2fb7b84d5d50f685186f9866337e167a249118 (patch) | |
tree | 4bd41ec584be2147b21626aa9001dc52dac3f6cb /generic/tclInt.h | |
parent | e38608eeb31429e3684101d8bcf151ea5fe29ed4 (diff) | |
download | tcl-6d2fb7b84d5d50f685186f9866337e167a249118.zip tcl-6d2fb7b84d5d50f685186f9866337e167a249118.tar.gz tcl-6d2fb7b84d5d50f685186f9866337e167a249118.tar.bz2 |
Update for TIP-551:
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.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 681cb61..e96a0f4 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -2703,6 +2703,8 @@ typedef struct ProcessGlobalValue { /* Reject leading/trailing whitespace. */ #define TCL_PARSE_BINARY_ONLY 64 /* Parse binary even without prefix. */ +#define TCL_PARSE_NO_UNDERSCORE 128 + /* Reject underscore digit separator */ /* *---------------------------------------------------------------------- |