getdate.y: disallow countable dayshifts like "4 yesterday ago"
[pspp] / ChangeLog
index 76c7363cf3cdf1a377cdb4ef8d527e850c1055e0..efb0c0a9391a47546dbd860c4b468923d5827d83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
+
+       getdate.y: disallow countable dayshifts like "4 yesterday ago"
+       * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
+       exactly specified dayshifts.
+       (dayshift): New rule.
+       (rel): Add dayshift.
+       (relative_time_table) [tomorrow, yesterday, today, now]:
+       Use tDAY_SHIFT in place of tDAY_UNIT.
+       * tests/test-getdate.c: Add tests for now-disallowed countable
+       dayshifts, e.g., "4 yesterday ago".
+
 2008-09-29  Bruno Haible  <bruno@clisp.org>
 
        * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.