]> git.armaanb.net Git - opendoas.git/blobdiff - parse.y
use static in the right places to seperate modules better ok tedu
[opendoas.git] / parse.y
diff --git a/parse.y b/parse.y
index 8a333642200c0c0a5f094edae977d03f78019274..5e776794069eec005906ef20f6c65eabde3222a5 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -49,13 +49,14 @@ typedef struct {
 FILE *yyfp;
 
 struct rule **rules;
-int nrules, maxrules;
+int nrules;
+static int maxrules;
+
 int parse_errors = 0;
-int obsolete_warned = 0;
+static int obsolete_warned = 0;
 
-void yyerror(const char *, ...);
-int yylex(void);
-int yyparse(void);
+static void yyerror(const char *, ...);
+static int yylex(void);
 
 %}
 
@@ -205,7 +206,7 @@ yyerror(const char *fmt, ...)
        parse_errors++;
 }
 
-struct keyword {
+static struct keyword {
        const char *word;
        int token;
 } keywords[] = {