From: Jim Meyering Date: Sat, 7 Aug 1999 09:50:34 +0000 (+0000) Subject: (OtherTable[]): Use tDAY_UNIT for `tomorrow,' X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70686f647087fd7f55d13c969f8d5446cafdec85;p=pspp (OtherTable[]): Use tDAY_UNIT for `tomorrow,' `yesterday,' `today,' and `now' rather than tMINUTE_UNIT. Of course with correspondingly smaller numbers for tomorrow and yesterday. This change does not change the way the code works, since the grammar rules for the two symbols are analogous. --- diff --git a/lib/getdate.y b/lib/getdate.y index 9dc10483de..056c366678 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -503,10 +503,10 @@ static TABLE const UnitsTable[] = { /* Assorted relative-time words. */ static TABLE const OtherTable[] = { - { "tomorrow", tMINUTE_UNIT, 1 * 24 * 60 }, - { "yesterday", tMINUTE_UNIT, -1 * 24 * 60 }, - { "today", tMINUTE_UNIT, 0 }, - { "now", tMINUTE_UNIT, 0 }, + { "tomorrow", tDAY_UNIT, 1 }, + { "yesterday", tDAY_UNIT, -1 }, + { "today", tDAY_UNIT, 0 }, + { "now", tDAY_UNIT, 0 }, { "last", tUNUMBER, -1 }, { "this", tMINUTE_UNIT, 0 }, { "next", tUNUMBER, 1 },