summaryrefslogtreecommitdiffstats
path: root/Parser/parsetok.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 19:20:54 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-22 19:20:54 (GMT)
commit23c9e0024af99379ae517b016b874d57127e9a97 (patch)
tree8b9550548b9af667e20b8aaaae03ac54d38d6f70 /Parser/parsetok.c
parentf70ef4f8606f99744252a804229d53a4d97601c1 (diff)
downloadcpython-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/parsetok.c')
-rw-r--r--Parser/parsetok.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 9d090f1..24bda83 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -27,11 +27,7 @@ static node *parsetok(struct tok_state *, grammar *, int, perrdetail *);
/* Parse input coming from a string. Return error code, print some errors. */
node *
-PyParser_ParseString(s, g, start, err_ret)
- char *s;
- grammar *g;
- int start;
- perrdetail *err_ret;
+PyParser_ParseString(char *s, grammar *g, int start, perrdetail *err_ret)
{
struct tok_state *tok;
@@ -60,13 +56,8 @@ PyParser_ParseString(s, g, start, err_ret)
/* Parse input coming from a file. Return error code, print some errors. */
node *
-PyParser_ParseFile(fp, filename, g, start, ps1, ps2, err_ret)
- FILE *fp;
- char *filename;
- grammar *g;
- int start;
- char *ps1, *ps2;
- perrdetail *err_ret;
+PyParser_ParseFile(FILE *fp, char *filename, grammar *g, int start,
+ char *ps1, char *ps2, perrdetail *err_ret)
{
struct tok_state *tok;
@@ -95,11 +86,7 @@ PyParser_ParseFile(fp, filename, g, start, ps1, ps2, err_ret)
Return error code. */
static node *
-parsetok(tok, g, start, err_ret)
- struct tok_state *tok;
- grammar *g;
- int start;
- perrdetail *err_ret;
+parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret)
{
parser_state *ps;
node *n;