Commit 71f477c7 authored by Guido van Rossum's avatar Guido van Rossum

Added forward declarations.

parent 7a904edc
...@@ -58,6 +58,12 @@ typedef struct _nfa { ...@@ -58,6 +58,12 @@ typedef struct _nfa {
int nf_start, nf_finish; int nf_start, nf_finish;
} 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 int static int
addnfastate(nf) addnfastate(nf)
nfa *nf; nfa *nf;
...@@ -114,6 +120,9 @@ typedef struct _nfagrammar { ...@@ -114,6 +120,9 @@ typedef struct _nfagrammar {
labellist gr_ll; labellist gr_ll;
} nfagrammar; } nfagrammar;
/* Forward */
static compile_rule PROTO((nfagrammar *gr, node *n));
static nfagrammar * static nfagrammar *
newnfagrammar() newnfagrammar()
{ {
...@@ -420,6 +429,12 @@ typedef struct _ss_dfa { ...@@ -420,6 +429,12 @@ typedef struct _ss_dfa {
ss_state *sd_state; ss_state *sd_state;
} 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 static
makedfa(gr, nf, d) makedfa(gr, nf, d)
nfagrammar *gr; nfagrammar *gr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment