Add some compiler warnings and corresponding fixes.
Most of the current problems were (mostly) harmless things like
missing declarations, but there was at least one real error, (reversed
argument order for yyerrror).
diff --git a/glcpp-parse.y b/glcpp-parse.y
index 9acd549..a2d1094 100644
--- a/glcpp-parse.y
+++ b/glcpp-parse.y
@@ -25,10 +25,12 @@
#include <stdio.h>
#include <stdlib.h>
+#include "glcpp.h"
+
#define YYSTYPE int
void
-yyerror (const char *error, void *scanner);
+yyerror (void *scanner, const char *error);
%}
@@ -54,7 +56,7 @@
%%
void
-yyerror (const char *error, void *scanner)
+yyerror (void *scanner, const char *error)
{
fprintf (stderr, "Parse error: %s\n", error);
}