X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetdate.y;h=4d2af5c5e674762c456897f6bb96ace4a9ab10a1;hb=f4654147c09a44c6cec113d26e33c60c0813436d;hp=f856a180782250504e54364127079c6ce3fd3406;hpb=29e59276fc2d28fcbede9bad652e0e648d33fc5f;p=gnulib.git diff --git a/lib/getdate.y b/lib/getdate.y index f856a1807..4d2af5c5e 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -1,5 +1,5 @@ %{ -/* $Revision: 1.1.1.1 $ +/* $Revision: 1.2 $ ** ** Originally written by Steven M. Bellovin while ** at the University of North Carolina at Chapel Hill. Later tweaked by @@ -7,17 +7,21 @@ ** and Jim Berets in August, 1990; ** send any email to Rich. ** -** This grammar has eight shift/reduce conflicts. +** This grammar has nine shift/reduce conflicts. ** ** This code is in the public domain and has no copyright. */ /* SUPPRESS 287 on yaccpar_sccsid *//* Unusd static variable */ /* SUPPRESS 288 on yyerrlab *//* Label unused */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #ifdef __GNUC__ #define alloca __builtin_alloca #else -#ifdef sparc +#ifdef HAVE_ALLOCA_H #include #else #ifdef _AIX /* for Bison */ @@ -36,10 +40,6 @@ char *alloca (); tricks are need, but defaults to using the gettimeofday system call. Include if that will be used. */ -#if !defined (USG) && !defined (sgi) && !defined (__386BSD__) -#include -#endif - #if defined(vms) #include @@ -49,6 +49,16 @@ char *alloca (); #include +#if sgi +#undef timezone +#endif + +#if !(defined (USG) || defined (sgi) || defined (__386BSD__)) || defined(BSD4_2) || defined(BSD4_1C) || (defined (hp9000) && !defined (hpux)) || defined(_AIX) +#include +#else +#include +#endif + #if defined(USG) || !defined(HAVE_FTIME) /* ** If you need to do a tzset() call to set the @@ -67,34 +77,24 @@ struct timeb { #endif /* defined(USG) && !defined(HAVE_FTIME) */ -#if defined(BSD4_2) || defined(BSD4_1C) || (defined (hp9000) && !defined (hpux)) -#include -#else -#if defined(_AIX) -#include -#endif -#include -#endif /* defined(BSD4_2) */ - #endif /* defined(vms) */ #if defined (STDC_HEADERS) || defined (USG) #include #endif -#if sgi -#undef timezone -#endif - extern struct tm *localtime(); #define yyparse getdate_yyparse #define yylex getdate_yylex #define yyerror getdate_yyerror +static int yylex (); +static int yyerror (); + #if !defined(lint) && !defined(SABER) static char RCS[] = - "$Header: /w/src/cvsroot/shellutils/lib/getdate.y,v 1.1.1.1 1992/11/01 05:44:32 meyering Exp $"; + "$Header: /w/src/cvsroot/fileutils/lib/getdate.y,v 1.2 1993/04/04 15:21:49 meyering Exp $"; #endif /* !defined(lint) && !defined(SABER) */