pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

news/pan: invalid checksum for patch-ac



Somehow the checksum for new/pan/patches/patch-ac seems to have become
invalid.

Also I'd like to propose a new patch, patch-parsedate.y:

$NetBSD$

For articles from olduse.net.

--- parsedate.y.orig    2000-05-27 00:31:17.000000000 +0000
+++ parsedate.y
@@ -134,6 +134,10 @@ item       : time {
        | rel {
            yyHaveRel = 1;
        }
+       | unixdatestamp {
+           yyHaveTime++;
+           yyHaveDate++;
+       }
        ;
 
 time   : tUNUMBER o_merid {
@@ -283,6 +287,21 @@ o_merid    : /* NULL */ {
        }
        ;
 
+       /* Sat Apr 24 10:49:30 1982 */
+unixdatestamp: tDAY tMONTH tUNUMBER udtime tUNUMBER {
+           yyDay = $3;
+           yyMonth = $2;
+           yyYear = $5;
+       }
+       ;
+
+udtime : tUNUMBER ':' tUNUMBER ':' tUNUMBER {
+           yyHour = $1;
+           yyMinutes = $3;
+           yySeconds = $5;
+           yyMeridian = MER24;
+           yyDSTmode = DSToff;
+       }
 %%
 
 /* Month and day table. */
@@ -799,7 +818,7 @@ main(ac, av)
            continue;
        }
 #endif /* YYDEBUG */
-       d = parsedate(buff, (TIMEINFO *)NULL);
+       d = parsedate(buff);
        if (d == -1)
            (void)printf("Bad format - couldn't convert.\n");
        else


-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: pgpmtb9qlX0CL.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index