diff options
author | Jim Meyering <jim@meyering.net> | 2000-02-22 20:16:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-02-22 20:16:07 +0000 |
commit | fb50c4895a348255d340015f3a128742604eb353 (patch) | |
tree | 398c3e17deac9cb4cb3ae2e9c93fcc38d89ce4fe /old | |
parent | 29e2ec86768e8bde5c14e8273688971ead4dc6de (diff) | |
download | coreutils-fb50c4895a348255d340015f3a128742604eb353.tar.xz |
Handle two-digit years with leading zeros correctly.
(textint): New typedef.
(parser_control): Member year changed from int to textint.
All uses changed.
(YYSTYPE): Removed; replaced by %union with int and textint members.
(tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
(tSNUMBER, tUNUMBER): Now of type <textintval>.
(date, number, to_year): Use width of number in digits, not its value,
to determine whether it's a 2-digit year, or a 2-digit time.
(yylex): Store number of digits of numeric tokens.
Reported by John Kendall.
(parser_control): Changed from struct parser_control to typedef (for
consistency). All uses changed.
(tID): Removed; not used.
(yylex): Return '?' for unknown identifiers, rather than (unused) tID.
Diffstat (limited to 'old')
0 files changed, 0 insertions, 0 deletions