X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2Fgetdate.y;h=658da69fcda14200134889cea2bc5619f3be0625;hb=196caec187f27a3c3e4a68eee6bb388d79dac960;hp=2cb3ddc56f39c76d2beeb259d471daf9f79e5fff;hpb=26fd2b79db1c3ea54fa9ca00991cb91be2189351;p=chaz%2Ftar diff --git a/lib/getdate.y b/lib/getdate.y index 2cb3ddc..658da69 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -73,7 +73,7 @@ # include #endif -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ # define __attribute__(x) #endif @@ -831,7 +831,10 @@ yyerror (char *s ATTRIBUTE_UNUSED) return 0; } -/* ?? */ +/* Parse a date/time string P. Return the corresponding time_t value, + or (time_t) -1 if there is an error. P can be an incomplete or + relative time specification; if so, use *NOW as the basis for the + returned time. */ time_t get_date (const char *p, const time_t *now) {