summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/lib/getdate.y
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-10-18 04:19:48 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-10-18 04:19:48 +0000
commit0a0c8000ab0a9da849304b9fe19440c4fd669b94 (patch)
tree905cab74d5627ca45b64222913e692a2a601a306 /gnu/usr.bin/cvs/lib/getdate.y
parent5f79c74c0fdeb0e48836cdb75e899423a17cab43 (diff)
Integrate local changes
Diffstat (limited to 'gnu/usr.bin/cvs/lib/getdate.y')
-rw-r--r--gnu/usr.bin/cvs/lib/getdate.y19
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/usr.bin/cvs/lib/getdate.y b/gnu/usr.bin/cvs/lib/getdate.y
index 57871426745..046fa3fb1ee 100644
--- a/gnu/usr.bin/cvs/lib/getdate.y
+++ b/gnu/usr.bin/cvs/lib/getdate.y
@@ -96,9 +96,18 @@ struct timeb {
#include <stdlib.h>
#endif
-#if defined (HAVE_ALLOCA_H)
-#include <alloca.h>
-#endif
+/* NOTES on rebuilding getdate.c (particularly for inclusion in CVS
+ releases):
+
+ We don't want to mess with all the portability hassles of alloca.
+ In particular, most (all?) versions of bison will use alloca in
+ their parser. If bison works on your system (e.g. it should work
+ with gcc), then go ahead and use it, but the more general solution
+ is to use byacc instead of bison, which should generate a portable
+ parser. I played with adding "#define alloca dont_use_alloca", to
+ give an error if the parser generator uses alloca (and thus detect
+ unportable getdate.c's), but that seems to cause as many problems
+ as it solves. */
extern struct tm *gmtime();
extern struct tm *localtime();
@@ -107,10 +116,6 @@ extern struct tm *localtime();
#define yylex getdate_yylex
#define yyerror getdate_yyerror
-#if !defined(lint) && !defined(SABER)
-static char RCS[] = "$CVSid: @(#)getdate.y 1.11 94/09/21 $";
-#endif /* !defined(lint) && !defined(SABER) */
-
static int yylex ();
static int yyerror ();