summaryrefslogtreecommitdiffstats
path: root/contrib/amd/amd/conf_parse.y
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2004-07-06 12:55:44 +0000
committermbr <mbr@FreeBSD.org>2004-07-06 12:55:44 +0000
commit60473f926a419fb6363f402fa2a5a8a946028cea (patch)
tree6c351e8581e50d68b076a1f359b7a6d1ac2b5cb9 /contrib/amd/amd/conf_parse.y
parent3f1ec286a5e001f950345fd6e135084d09764c76 (diff)
downloadFreeBSD-src-60473f926a419fb6363f402fa2a5a8a946028cea.zip
FreeBSD-src-60473f926a419fb6363f402fa2a5a8a946028cea.tar.gz
Virgin import of AMD (am-utils) v6.0.10p1
Diffstat (limited to 'contrib/amd/amd/conf_parse.y')
-rw-r--r--contrib/amd/amd/conf_parse.y31
1 files changed, 7 insertions, 24 deletions
diff --git a/contrib/amd/amd/conf_parse.y b/contrib/amd/amd/conf_parse.y
index ceee79e..992d321 100644
--- a/contrib/amd/amd/conf_parse.y
+++ b/contrib/amd/amd/conf_parse.y
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-2003 Erez Zadok
+ * Copyright (c) 1997-2004 Erez Zadok
* Copyright (c) 1989 Jan-Simon Pendry
* Copyright (c) 1989 Imperial College of Science, Technology & Medicine
* Copyright (c) 1989 The Regents of the University of California.
@@ -36,9 +36,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * %W% (Berkeley) %G%
*
- * $Id: conf_parse.y,v 1.4.2.3 2002/12/27 22:44:34 ezk Exp $
+ * $Id: conf_parse.y,v 1.4.2.5 2004/05/12 15:54:31 ezk Exp $
*
*/
@@ -49,24 +48,8 @@
#include <am_defs.h>
#include <amd.h>
-/* AIX requires this to be the first thing in the file. */
-#ifndef __GNUC__
-# if HAVE_ALLOCA_H
-# include <alloca.h>
-# else /* not HAVE_ALLOCA_H */
-# ifdef _AIX
-#pragma alloca
-# else /* not _AIX */
-# ifndef alloca
- /* predefined by HP cc +Olibcalls */
-voidp alloca();
-# endif /* not alloca */
-# endif /* not _AIX */
-# endif /* not HAVE_ALLOCA_H */
-#endif /* not __GNUC__ */
-
extern char *yytext;
-extern int yylineno;
+extern int ayylineno;
extern int yylex(void);
static int yyerror(const char *s);
@@ -78,12 +61,12 @@ static char *header_section = NULL; /* start with no header section */
#define PARSE_DEBUG 0
#if PARSE_DEBUG
-# define dprintf(f,s) fprintf(stderr, (f), yylineno, (s))
+# define dprintf(f,s) fprintf(stderr, (f), ayylineno, (s))
# define amu_return(v)
-#else
+#else /* not PARSE_DEBUG */
# define dprintf(f,s)
# define amu_return(v) return((v))
-#endif /* PARSE_DEBUG */
+#endif /* not PARSE_DEBUG */
%}
@@ -168,7 +151,7 @@ static int
yyerror(const char *s)
{
fprintf(stderr, "AMDCONF: %s on line %d (section %s)\n",
- s, yylineno,
+ s, ayylineno,
(header_section ? header_section : "null"));
exit(1);
return 1; /* to full compilers that insist on a return statement */
OpenPOWER on IntegriCloud