* m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Sep 2005 23:08:15 +0000 (23:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Sep 2005 23:08:15 +0000 (23:08 +0000)
commit5cc13c0f36d18dd428c7cceebd30ff8de6e2ff1e
tree52ef29a4b33f67412a1c3ad74a4696d9f0a047bf
parent5fa5d3d767b29cf1d757609afbb56459b09743fa
* m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
(gl_GETDATE): Use it.
* lib/getdate.y (relative_time): New type.
(RELATIVE_TIME_0): New constant.
(parser_control): Use relative_time instead of doing it ourselves.
(%union): Add new relative_time rel member.
(tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
Now typeless.
(relunit, relunit_snumber): Now of type rel.
(zone, rel, relunit, get_date): Adjust to above changes.
lib/getdate.y
m4/getdate.m4