Fix getdate bug with relative times.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Jul 2005 22:00:55 +0000 (22:00 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Jul 2005 22:00:55 +0000 (22:00 +0000)
lib/ChangeLog
m4/ChangeLog

index f2596b1..d393dc7 100644 (file)
@@ -1,3 +1,14 @@
+2005-07-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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.
+
 2005-07-12  Jim Meyering  <jim@meyering.net>
 
        * xalloc.h (X2NREALLOC): Define.
index 9ddb804..1cfcb5d 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
+       (gl_GETDATE): Use it.
+
 2005-07-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib-check.m4 (cu_LIB_CHECK): Remove no-longer-necessary check