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/grammar.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/grammar.c')
-rw-r--r-- | Parser/grammar.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/Parser/grammar.c b/Parser/grammar.c index 1a50786..07e59ff 100644 --- a/Parser/grammar.c +++ b/Parser/grammar.c @@ -21,8 +21,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. extern int Py_DebugFlag; grammar * -newgrammar(start) - int start; +newgrammar(int start) { grammar *g; @@ -39,10 +38,7 @@ newgrammar(start) } dfa * -adddfa(g, type, name) - grammar *g; - int type; - char *name; +adddfa(grammar *g, int type, char *name) { dfa *d; @@ -60,8 +56,7 @@ adddfa(g, type, name) } int -addstate(d) - dfa *d; +addstate(dfa *d) { state *s; @@ -79,9 +74,7 @@ addstate(d) } void -addarc(d, from, to, lbl) - dfa *d; - int lbl; +addarc(dfa *d, int from, int to, int lbl) { state *s; arc *a; @@ -99,10 +92,7 @@ addarc(d, from, to, lbl) } int -addlabel(ll, type, str) - labellist *ll; - int type; - char *str; +addlabel(labellist *ll, int type, char *str) { int i; label *lb; @@ -124,10 +114,7 @@ addlabel(ll, type, str) /* Same, but rather dies than adds */ int -findlabel(ll, type, str) - labellist *ll; - int type; - char *str; +findlabel(labellist *ll, int type, char *str) { int i; @@ -145,8 +132,7 @@ findlabel(ll, type, str) static void translabel(grammar *, label *); void -translatelabels(g) - grammar *g; +translatelabels(grammar *g) { int i; @@ -159,9 +145,7 @@ translatelabels(g) } static void -translabel(g, lb) - grammar *g; - label *lb; +translabel(grammar *g, label *lb) { int i; |