diff Parser/node.c @ 13659:e78153e179fb legacy-trunk

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.
author Thomas Wouters <thomas@python.org>
date Sat, 22 Jul 2000 19:20:54 +0000
parents a89f7f268de4
children 21ec69a56228
line wrap: on
line diff
--- a/Parser/node.c	Sat Jul 22 18:47:25 2000 +0000
+++ b/Parser/node.c	Sat Jul 22 19:20:54 2000 +0000
@@ -17,8 +17,7 @@
 #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 @@
 #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 @@
 
 
 void
-PyNode_Free(n)
-	node *n;
+PyNode_Free(node *n)
 {
 	if (n != NULL) {
 		freechildren(n);
@@ -78,8 +72,7 @@
 }
 
 static void
-freechildren(n)
-	node *n;
+freechildren(node *n)
 {
 	int i;
 	for (i = NCH(n); --i >= 0; )