summaryrefslogtreecommitdiffstats
path: root/generic/tclScan.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 3 times -1 -> TCL_INDEX_NONEjan.nijtmans2020-10-181-1/+1
|
* Merge 8.6jan.nijtmans2020-10-131-4/+4
|\
| * More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-6/+6
| | | | | | | | stead of Tcl_NewIntObj()
* | Merge 8.6jan.nijtmans2020-09-281-4/+4
|\ \ | |/
* | Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-3/+3
| | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
* | tip-551 implementation.griffin2020-05-301-2/+2
|\ \
| * | Update for TIP-551: griffin2020-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | merge 8.6dgp2020-04-021-8/+1
|\ \ \ | | |/ | |/|
| * | One more caller conversion that simplifies.dgp2020-04-021-8/+1
| | | | | | | | | | | | There may be other callers of TclUtfToUniChar that would be made more correct or consistent with a similar conversion.
* | | TIP 569 - remove lint commentsdgp2020-03-171-1/+0
| | |
* | | More TCL_UNUSED.dgp2020-03-081-2/+1
| | |
* | | Merge 8.7jan.nijtmans2020-02-131-2/+2
|\ \ \
| * \ \ Merge 8.7jan.nijtmans2019-12-131-6/+4
| |\ \ \
| * \ \ \ Merge 8.7jan.nijtmans2019-12-031-1/+1
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Merge 8.7jan.nijtmans2019-11-151-1/+1
| |\ \ \ \
| * \ \ \ \ Merge 8.7jan.nijtmans2019-11-111-7/+24
| |\ \ \ \ \ | | |/ / / /
| * | | | | Merge 8.7jan.nijtmans2019-11-041-1/+1
| |\ \ \ \ \
| * \ \ \ \ \ Merge 8.7jan.nijtmans2019-09-251-6/+5
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch tip-548. No longer define addtional stub-entries for functions ↵jan.nijtmans2019-08-121-1/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | that will be removed (because of deprecation) anyway
| * \ \ \ \ \ \ \ Add 4 new encodings, and add documentation.jan.nijtmans2019-03-181-1/+1
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge 8.7jan.nijtmans2019-03-161-3/+3
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | Move up some stub entries related to Tcl_UniChar Use TCL_UTF_MAX=4 for full Unicode in stead of TCL_UTF_MAX=6 (TCL_UTF_MAX: 3 is default)
* | | | | | | | | | Merge 8.7jan.nijtmans2019-12-131-6/+4
|\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ / | |/| | | | | | | |
| * | | | | | | | | Implement TIP's #538: Externalize libtommathjan.nijtmans2019-12-131-5/+3
| |\ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ Merge 8.7. Finish implementation.jan.nijtmans2019-11-121-4/+2
| | |\ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|/ / / | | | |/| | | | | | |
| | * | | | | | | | | Merge 8.7jan.nijtmans2019-11-111-7/+24
| | |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / /
| | * | | | | | | | | 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
| | | | |_|_|/ / / / | | | |/| | | | | |
| * | | | | | | | | Little code tweaks, regarding the use of TCL_UTF_MAX or wchar_t.jan.nijtmans2019-12-121-1/+1
| | |_|_|_|_|_|/ / | |/| | | | | | |
* | | | | | | | | Merge 8.7jan.nijtmans2019-12-031-1/+1
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | Eliminate excess eol-spacingjan.nijtmans2019-12-021-1/+1
| | |_|/ / / / / | |/| | | | | |
* | | | | | | | Merge 8.7jan.nijtmans2019-11-091-5/+19
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Merge 8.6. jan.nijtmans2019-11-081-7/+24
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | / | | | |_|_|_|/ | | |/| | | | Add support for libtommath's mp_set_ll() function, since that's the replacement for the deprecated TclBNInitBignumFromWideInt() function.
| | * | | | | Fix tclScan.c, not generating a string representation any more with unsigned ↵jan.nijtmans2019-11-061-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | wideints and unsigned longs.
* | | | | | | Merge 8.7jan.nijtmans2019-11-071-5/+7
|\ \ \ \ \ \ \ | |/ / / / / /
* | | | | | | Fix tclScan.c, not generating a string representation any more with unsigned ↵jan.nijtmans2019-11-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | wideints
* | | | | | | Merge 8.7jan.nijtmans2019-11-041-1/+1
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 8.6jan.nijtmans2019-10-301-1/+1
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | / | | |_|_|_|/ | |/| | | |
* | | | | | Mark more unused parametersjan.nijtmans2019-09-031-0/+1
| | | | | |
* | | | | | Merge tip-548jan.nijtmans2019-08-291-6/+5
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge 8.6jan.nijtmans2019-08-281-6/+5
| |\ \ \ \ \ | | |/ / / / | | | / / / | | |/ / / | |/| | |
| | * | | Add /* FALLTHRU */ markers in various places (silencing possible GCC ↵jan.nijtmans2019-08-281-6/+5
| | | | | | | | | | | | | | | | | | | | warnings). Eliminate some more "register" keywords. Eliminate (or silence) some unused function parameters.
* | | | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-8/+10
|\ \ \ \ \ | |/ / / /
* | | | | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-1/+1
|/ / / /
* | | | Comment Comment Tcl_UniCharToUtf() better, what happens handling surrogates. ↵jan.nijtmans2019-03-181-1/+1
| |_|/ |/| | | | | | | | Add type cast in tclUtf.c, making actual check clearer
* | | Eliminate usage of mp_isneg(), just check bignum->sign directly (as ↵jan.nijtmans2019-03-151-1/+1
| |/ |/| | | | | | | libtommath itself does) Make TclInitBugnumFromLong() a static function in stubtable only, as it isn't used by Tcl anymore.
* | Minor optimization in UTF-8 handling, and add some comments describing how ↵jan.nijtmans2019-03-021-2/+2
|\ \ | |/ | | | | Tcl_UniCharToUtf() handles surrogates.
| * Fix some "scan.test" test-cases when TCL_UTF_MAX=4. Wrongly resolved ↵jan.nijtmans2019-03-021-2/+2
| | | | | | | | merge-conflict in previous cherry-pick merge.
| * Backport [bd94500678e837d7] from 8.7, preventing endless loops in UTF-8 ↵jan.nijtmans2019-03-021-2/+2
| | | | | | | | conversions when handling surrogates. Only effective when compiling with -DTCL_UTF_MAX=4|6 (default: 3). Meant for benefit of Androwish.
* | Finish complete fix, all corner-cases correct now. Also spurious UTF-8 ↵jan.nijtmans2019-02-251-1/+1
| | | | | | | | testcase failure (as seen on travis) fixed now.