diff Modules/parsermodule.c @ 13503:6484098f40fc legacy-trunk

ANSI-fying added excplicit node * parameter to termvalid argument in validate_two_chain_ops of parsermodule.c (as proposed by fred)
author Peter Schneider-Kamp <nowonder@nowonder.de>
date Mon, 10 Jul 2000 12:43:58 +0000
parents bfadd363a200
children 61e4c29d53d8
line wrap: on
line diff
--- a/Modules/parsermodule.c	Mon Jul 10 12:29:26 2000 +0000
+++ b/Modules/parsermodule.c	Mon Jul 10 12:43:58 2000 +0000
@@ -477,9 +477,7 @@
 
 
 static PyObject*
-parser_getattr(self, name)
-     PyObject *self;
-     char *name;
+parser_getattr(PyObject *self, char *name)
 {
     return (Py_FindMethod(parser_methods, self, name));
 }
@@ -491,8 +489,7 @@
  *
  */
 static void
-err_string(message)
-     char *message;
+err_string(char *message)
 {
     PyErr_SetString(parser_error, message);
 }
@@ -1632,8 +1629,7 @@
  *
  */
 static int
-validate_try(tree)
-    node *tree;
+validate_try(node *tree)
 {
     int nch = NCH(tree);
     int pos = 3;
@@ -1882,11 +1878,7 @@
 
 
 static int
-validate_chain_two_ops(tree, termvalid, op1, op2)
-     node *tree;
-     int (*termvalid)();
-     int op1;
-     int op2;
+validate_chain_two_ops(node *tree, int (*termvalid)(node *), int op1, int op2)
  {
     int pos = 1;
     int nch = NCH(tree);