diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-22 19:20:54 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-22 19:20:54 (GMT) |
commit | 23c9e0024af99379ae517b016b874d57127e9a97 (patch) | |
tree | 8b9550548b9af667e20b8aaaae03ac54d38d6f70 /Parser/printgrammar.c | |
parent | f70ef4f8606f99744252a804229d53a4d97601c1 (diff) | |
download | cpython-23c9e0024af99379ae517b016b874d57127e9a97.zip cpython-23c9e0024af99379ae517b016b874d57127e9a97.tar.gz cpython-23c9e0024af99379ae517b016b874d57127e9a97.tar.bz2 |
Mass ANSIfication.
Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to
'Py_AddPendingCall' by providing a (static) wrapper function that has the
right number of arguments.
Diffstat (limited to 'Parser/printgrammar.c')
-rw-r--r-- | Parser/printgrammar.c | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c index 5d1d9e0..1cd45ee 100644 --- a/Parser/printgrammar.c +++ b/Parser/printgrammar.c @@ -20,9 +20,7 @@ static void printdfas(grammar *, FILE *); static void printlabels(grammar *, FILE *); void -printgrammar(g, fp) - grammar *g; - FILE *fp; +printgrammar(grammar *g, FILE *fp) { fprintf(fp, "#include \"pgenheaders.h\"\n"); fprintf(fp, "#include \"grammar.h\"\n"); @@ -37,9 +35,7 @@ printgrammar(g, fp) } void -printnonterminals(g, fp) - grammar *g; - FILE *fp; +printnonterminals(grammar *g, FILE *fp) { dfa *d; int i; @@ -50,10 +46,7 @@ printnonterminals(g, fp) } static void -printarcs(i, d, fp) - int i; - dfa *d; - FILE *fp; +printarcs(int i, dfa *d, FILE *fp) { arc *a; state *s; @@ -71,9 +64,7 @@ printarcs(i, d, fp) } static void -printstates(g, fp) - grammar *g; - FILE *fp; +printstates(grammar *g, FILE *fp) { state *s; dfa *d; @@ -93,9 +84,7 @@ printstates(g, fp) } static void -printdfas(g, fp) - grammar *g; - FILE *fp; +printdfas(grammar *g, FILE *fp) { dfa *d; int i, j; @@ -115,9 +104,7 @@ printdfas(g, fp) } static void -printlabels(g, fp) - grammar *g; - FILE *fp; +printlabels(grammar *g, FILE *fp) { label *l; int i; |