aboutsummaryrefslogtreecommitdiffstats
path: root/utils/Burg/lex.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-22 02:40:40 +0000
committerChris Lattner <sabre@nondot.org>2002-09-22 02:40:40 +0000
commit9c9bfa7f29cccd08f479d9726f485bfae72b647b (patch)
treeb068b91176af2ea16f7449e432f773c477894dd9 /utils/Burg/lex.c
parentc078930ee3b5f18aba8cb75424937d0e3cfc7c71 (diff)
downloadexternal_llvm-9c9bfa7f29cccd08f479d9726f485bfae72b647b.zip
external_llvm-9c9bfa7f29cccd08f479d9726f485bfae72b647b.tar.gz
external_llvm-9c9bfa7f29cccd08f479d9726f485bfae72b647b.tar.bz2
Fix tons of warnings, convert burg to use Makefile.common system, rename
gram.y to gram.yc so that we don't try to turn it into a .cpp file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/Burg/lex.c')
-rw-r--r--utils/Burg/lex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/Burg/lex.c b/utils/Burg/lex.c
index 3d6c5af..85eb8a7 100644
--- a/utils/Burg/lex.c
+++ b/utils/Burg/lex.c
@@ -5,7 +5,7 @@ char rcsid_lex[] = "$Id$";
#include <string.h>
#include "b.h"
#include "fe.h"
-#include "y.tab.h"
+#include "gram.tab.h"
static char buf[BUFSIZ];
@@ -245,14 +245,13 @@ yylex()
return(0);
}
-void
-yyerror1(str) char *str;
+void yyerror1(const char *str)
{
fprintf(stderr, "line %d: %s", yyline, str);
}
void
-yyerror(str) char *str;
+yyerror(const char *str)
{
yyerror1(str);
fprintf(stderr, "\n");