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/node.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/node.c')
-rw-r--r-- | Parser/node.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Parser/node.c b/Parser/node.c index 3a710ef..910192d 100644 --- a/Parser/node.c +++ b/Parser/node.c @@ -17,8 +17,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include "errcode.h" node * -PyNode_New(type) - int type; +PyNode_New(int type) { node *n = PyMem_NEW(node, 1); if (n == NULL) @@ -35,11 +34,7 @@ PyNode_New(type) #define XXXROUNDUP(n) ((n) == 1 ? 1 : ((n) + XXX - 1) / XXX * XXX) int -PyNode_AddChild(n1, type, str, lineno) - register node *n1; - int type; - char *str; - int lineno; +PyNode_AddChild(register node *n1, int type, char *str, int lineno) { register int nch = n1->n_nchildren; register int nch1 = nch+1; @@ -68,8 +63,7 @@ static void freechildren(node *); void -PyNode_Free(n) - node *n; +PyNode_Free(node *n) { if (n != NULL) { freechildren(n); @@ -78,8 +72,7 @@ PyNode_Free(n) } static void -freechildren(n) - node *n; +freechildren(node *n) { int i; for (i = NCH(n); --i >= 0; ) |