summaryrefslogtreecommitdiff
path: root/Parser/pgen.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-02 18:27:33 +0000
committerGuido van Rossum <guido@python.org>1996-12-02 18:27:33 +0000
commitfd8a393086fbf43597965d5e55bec158a094a466 (patch)
tree2e819fb69d233f219b1b93d5a4c451c1f2deec63 /Parser/pgen.c
parentbda7ca77724b75fa196e4367ae7580d510d6ee72 (diff)
downloadcpython-git-fd8a393086fbf43597965d5e55bec158a094a466.tar.gz
Make gcc -Wall happy
Diffstat (limited to 'Parser/pgen.c')
-rw-r--r--Parser/pgen.c40
1 files changed, 22 insertions, 18 deletions
diff --git a/Parser/pgen.c b/Parser/pgen.c
index dff4aed704..c5a0618479 100644
--- a/Parser/pgen.c
+++ b/Parser/pgen.c
@@ -66,10 +66,14 @@ typedef struct _nfa {
} nfa;
/* Forward */
-static compile_rhs PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
-static compile_alt PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
-static compile_item PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
-static compile_atom PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
+static void compile_rhs PROTO((labellist *ll,
+ nfa *nf, node *n, int *pa, int *pb));
+static void compile_alt PROTO((labellist *ll,
+ nfa *nf, node *n, int *pa, int *pb));
+static void compile_item PROTO((labellist *ll,
+ nfa *nf, node *n, int *pa, int *pb));
+static void compile_atom PROTO((labellist *ll,
+ nfa *nf, node *n, int *pa, int *pb));
static int
addnfastate(nf)
@@ -128,7 +132,7 @@ typedef struct _nfagrammar {
} nfagrammar;
/* Forward */
-static compile_rule PROTO((nfagrammar *gr, node *n));
+static void compile_rule PROTO((nfagrammar *gr, node *n));
static nfagrammar *
newnfagrammar()
@@ -195,7 +199,7 @@ metacompile(n)
return gr;
}
-static
+static void
compile_rule(gr, n)
nfagrammar *gr;
node *n;
@@ -216,7 +220,7 @@ compile_rule(gr, n)
REQ(n, NEWLINE);
}
-static
+static void
compile_rhs(ll, nf, n, pa, pb)
labellist *ll;
nfa *nf;
@@ -253,7 +257,7 @@ compile_rhs(ll, nf, n, pa, pb)
}
}
-static
+static void
compile_alt(ll, nf, n, pa, pb)
labellist *ll;
nfa *nf;
@@ -284,7 +288,7 @@ compile_alt(ll, nf, n, pa, pb)
}
}
-static
+static void
compile_item(ll, nf, n, pa, pb)
labellist *ll;
nfa *nf;
@@ -325,7 +329,7 @@ compile_item(ll, nf, n, pa, pb)
}
}
-static
+static void
compile_atom(ll, nf, n, pa, pb)
labellist *ll;
nfa *nf;
@@ -437,12 +441,12 @@ typedef struct _ss_dfa {
} ss_dfa;
/* Forward */
-static printssdfa PROTO((int xx_nstates, ss_state *xx_state, int nbits,
- labellist *ll, char *msg));
-static simplify PROTO((int xx_nstates, ss_state *xx_state));
-static convert PROTO((dfa *d, int xx_nstates, ss_state *xx_state));
+static void printssdfa PROTO((int xx_nstates, ss_state *xx_state, int nbits,
+ labellist *ll, char *msg));
+static void simplify PROTO((int xx_nstates, ss_state *xx_state));
+static void convert PROTO((dfa *d, int xx_nstates, ss_state *xx_state));
-static
+static void
makedfa(gr, nf, d)
nfagrammar *gr;
nfa *nf;
@@ -548,7 +552,7 @@ makedfa(gr, nf, d)
/* XXX cleanup */
}
-static
+static void
printssdfa(xx_nstates, xx_state, nbits, ll, msg)
int xx_nstates;
ss_state *xx_state;
@@ -629,7 +633,7 @@ renamestates(xx_nstates, xx_state, from, to)
}
}
-static
+static void
simplify(xx_nstates, xx_state)
int xx_nstates;
ss_state *xx_state;
@@ -661,7 +665,7 @@ simplify(xx_nstates, xx_state)
/* Convert the DFA into a grammar that can be used by our parser */
-static
+static void
convert(d, xx_nstates, xx_state)
dfa *d;
int xx_nstates;