]> Dogcows Code - chaz/tar/commit
Handle two-digit years with leading zeros correctly.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Feb 2000 00:25:54 +0000 (00:25 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Feb 2000 00:25:54 +0000 (00:25 +0000)
commit3a19b8b0df660ab893ebb9ac5a3614fd196c9135
treea44e668a0a04f7465e384c0b37a967dc301ba1c8
parent19209ceaf7605369ce9d5da6ad0436331049e5d5
Handle two-digit years with leading zeros correctly.

(textint): New typedef.
(parser_control): Changed from struct parser_control to typedef (for
consistency).  Member year changed from int to textint.  All uses changed.
(YYSTYPE): Removed; replaced by %union with int and textint members.
(tID): Removed; not used.
(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.
Return '?' for unknown identifiers, rather than (unused) tID.
lib/getdate.y
This page took 0.024937 seconds and 4 git commands to generate.