summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Get sebres-8-6-clock-speedup-cr2 ready for 8.7 toojan.nijtmans2021-02-1820-4367/+10330
|\
| * One more error-message tweakjan.nijtmans2021-02-182-4/+4
| |
| * tweak error-messages a little more (no quotes here)jan.nijtmans2021-02-182-4/+4
| |
| * tweak error-messagesjan.nijtmans2021-02-183-13/+13
| |
| * Merge 8.6jan.nijtmans2021-02-182-8/+14
| |\
| * \ Merge 8.6jan.nijtmans2021-02-17145-2606/+2875
| |\ \
| * \ \ Merge 8.6jan.nijtmans2020-11-30101-297/+571
| |\ \ \
| * \ \ \ Merge 8.6jan.nijtmans2020-10-3073-1085/+1127
| |\ \ \ \
| * \ \ \ \ Merge 8.6jan.nijtmans2020-10-165-14/+15
| |\ \ \ \ \
| * \ \ \ \ \ Merge 8.6. More warning fixesjan.nijtmans2020-10-155-34/+37
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge 8.6jan.nijtmans2020-10-1330-85/+102
| |\ \ \ \ \ \ \
| * | | | | | | | Eliminate some eol-spacing, eliminate some gcc warnings (with -Wc++-compat)jan.nijtmans2020-10-127-97/+104
| | | | | | | | |
| * | | | | | | | Merge 8.6jan.nijtmans2020-10-12320-3697/+6016
| |\ \ \ \ \ \ \ \
| * | | | | | | | | optimizes locale cache: locale is case-sensitive key; simplifying format ↵sebres2020-06-233-67/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | localization routine (cached within locale mc-catalog in C); clock::mcget - be sure we don't overwrite catalog of (common) locale {} (as it's a base of other catalogs loaded later).
| * | | | | | | | | Merge 8.6. Merge 8.6. Fix tclClockFmt.c buildjan.nijtmans2020-06-233-22/+22
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | switch internal numbers to long (size of time_t is depending by platform, ↵sebres2020-06-222-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiler, stdlib and its directives, and long is enough now for every part of input-string recognized inside of free-scan); this can drastically speedup scan (especially 32-bit platforms)
| * | | | | | | | | | rebuilt with bison 3.5; replace deprecated `%pure-parser` with `%define ↵sebres2020-06-222-370/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.pure`
| * | | | | | | | | | Merge branch 'iso-TZ-bug-21': closes gh-21 (bug [a1bd37b719], ↵sebres2020-06-223-279/+406
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/sebres/tclclockmod/issues/21)
| | * | | | | | | | | | small amend to #21 allowing time without seconds part "hh:mm" as extended ↵sebres2020-06-223-67/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ISO time (with and without T literal)
| | * | | | | | | | | | optimized ISO 8601 timestamp (with extended formats, T literal is optional ↵sebres2020-06-223-199/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now, more tests); decreases conflicts (10 shift/reduce and 9 reduce/reduce only);
| | * | | | | | | | | | ISO 8601 timestamp format accepts extended date and time (YYYY-MM-DD and ↵sebres2020-06-222-230/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hh:mm:ss); implements more strict TZ recognition rules by word-lookup (lookahead considering word boundaries, see test-cases), so avoid several conflicts, also confusing literal T in ISO timestamp with military TZ; closes #21
| | * | | | | | | | | | added test-cases illustrating bug #21: literal may be mistakenly recognized ↵sebres2020-06-221-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as a time-zone (doesn't consider word-boundaries)
| * | | | | | | | | | | resolves more shift/reduce conflicts (since SP token is expected by few ↵sebres2020-06-222-146/+142
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | items only, otherwise silently ignored)
| * | | | | | | | | | more tests time-zone independentsebres2020-06-221-14/+15
| | | | | | | | | | |
| * | | | | | | | | | close forksebres2020-06-220-0/+0
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ merge 8.6sebres2020-06-22560-18357/+22695
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | compatibility to future 8.6 version ([6596c4af31e29b5d] introduced new ↵sebres2020-06-221-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | internals TclUtfPrev/TclUtfNext in tclInt.h), avoids conflict with own implementation for previous version
| * | | | | | | | | | | | simplification of new testssebres2020-06-221-10/+10
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge branch 'gh-20--neg-relmonth-offs': fixed relative clock calculation on ↵sebres2020-06-220-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | negative month offset over threshold of a year; closes #20 (https://github.com/sebres/tclclockmod/issues/20)
| * | | | | | | | | | | | fixed relative clock calculation on negative month offset over threshold of ↵sebres2020-06-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a year: compiler/platform fix for negative offs if -1 % 12 results to -1 instead of 11 (removed by compilers where remainder is always positive)
| * | | | | | | | | | | | added test case illustrating bug #20 - wrong relative clock calculation on ↵sebres2020-06-221-0/+18
| | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | negative month offset over threshold of a year
| * | | | | | | | | | | Merge branch 'fix-gh-19' (https://github.com/sebres/tclclockmod/issues/19)sebres2020-06-223-30/+128
| |\ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | windows: small amend (speedup _hasRegistry in positive case)sebres2020-06-221-5/+6
| | | | | | | | | | | | |
| | * | | | | | | | | | | close #19: implements safe "catch" in clock NS - avoid overwrite of interp ↵sebres2020-06-222-33/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state by select and setup timezone (as well as in other "catched" blocks on lazy loading or initialization); windows: load registry package on demand only (if possible, using same safe "catch" command).
| | * | | | | | | | | | | avoid overwrite of interp state by select and setup timezonesebres2020-06-221-1/+9
| | | | | | | | | | | | |
| | * | | | | | | | | | | avoid change of interp state in ::tcl::clock::LocalizeFormatsebres2020-06-221-6/+6
| | | | | | | | | | | | |
| | * | | | | | | | | | | test case illustrating #19: some initialization of clock.tcl (locale/msgcat, ↵sebres2020-06-221-0/+14
| |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | etc) could overwrite interp state (errorInfo/errorCode)
| * | | | | | | | | | | improve tests, since timerate supporting max-count toosebres2020-06-221-9/+15
| | | | | | | | | | | |
| * | | | | | | | | | | small amend to [3bec82b72c] (sebres/tclclockmod#18): test cases extended to ↵sebres2019-07-151-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cover error cases (on ambiguous short forms of month) too
| * | | | | | | | | | | Fixes sebres/tclclockmod#18 (Fails to parse short month name for June); sebres2019-07-152-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason for that was the wrong length calculation by scanning through my string index tree, so the ambiguity check `j->(jan,ju->(jun,jul))` failed for 2nd element Ju(ne) with length 2. Simple fix and test-cases covering that, but it looks like this has a good potential for speedup (todo: move length calculation from search to build)
| * | | | | | | | | | | Merge pull request sebres/tclclockmod#17 from sebres/simplify-yy-flagssebres2019-07-154-178/+138
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Simplifying info structure, yacc rules and flags
| | * | | | | | | | | | | simplifying info-structure, usage of flags etc (normalizing in order to use ↵sebres2019-07-154-101/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | same flags as by formatted scan instead of members like yyHave...); (additionally allocates info->messages object on demand, if free scan fails)
| | * | | | | | | | | | | **interim** try simplify info-structure (replace yyHave... with flags)sebres2019-07-154-101/+87
| |/ / / / / / / / / / /
| | | | | | | | | | | |
| | \ \ \ \ \ \ \ \ \ \
| *-. \ \ \ \ \ \ \ \ \ \ merge 8.6sebres2019-07-15133-27755/+6947
| |\ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ merge 8.6sebres2019-03-1314-66/+175
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ integrate branch clock-astronomical-jdn: merge pull request #16 from ↵sebres2019-03-135-68/+337
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sebres/astronomical-jdn (https://github.com/sebres/tclclockmod/pull/16); astronomical and calendar JDN/JD with time fraction
| | * | | | | | | | | | | | | | scan: all JDN/JD are signed, so allow parse negative Julian dayssebres2019-03-132-6/+17
| | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | format: add support of new JDN-tokens (calendar JD `%EJ`, astronomical JD ↵sebres2019-03-132-52/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `%Ej`) with time fraction.
| | * | | | | | | | | | | | | | scan: extended with token `%EJ` to scan calendar julian day with time ↵sebres2019-03-133-19/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fraction (in opposite to astronomical JD `%Ej` it starts at midnight like `%J` token).
| | * | | | | | | | | | | | | | implemented scan of astronomical julian day (JDN/ID) with token `%Ej`, ↵sebres2019-03-135-10/+159
| |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | corresponds julian date of sqlite-database. In opposite to calendar julian day `%J`, it starts the day at noon (and can parse float, so contains a time fraction). **TODO** implement `clock format ... -format %Ej` and test-cases for format of this token. **TODO** implement `%EJ` token for calendar JD with time fraction.