summaryrefslogtreecommitdiffstats
path: root/Modules/parsermodule.c
diff options
context:
space:
mode:
authorPeter Schneider-Kamp <nowonder@nowonder.de>2000-07-10 12:43:58 (GMT)
committerPeter Schneider-Kamp <nowonder@nowonder.de>2000-07-10 12:43:58 (GMT)
commit286da3b46a3647db07c422058381ac65e74e47a2 (patch)
tree42402b809cb6e956c2ee3a35ead93add033aaa55 /Modules/parsermodule.c
parent41c36ffe83d22e84cc072130b3914d66d9d722f0 (diff)
downloadcpython-286da3b46a3647db07c422058381ac65e74e47a2.zip
cpython-286da3b46a3647db07c422058381ac65e74e47a2.tar.gz
cpython-286da3b46a3647db07c422058381ac65e74e47a2.tar.bz2
ANSI-fying
added excplicit node * parameter to termvalid argument in validate_two_chain_ops of parsermodule.c (as proposed by fred)
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r--Modules/parsermodule.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index daa2f80..feea8da 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -477,9 +477,7 @@ parser_methods[] = {
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 @@ parser_getattr(self, name)
*
*/
static void
-err_string(message)
- char *message;
+err_string(char *message)
{
PyErr_SetString(parser_error, message);
}
@@ -1632,8 +1629,7 @@ validate_for(node *tree)
*
*/
static int
-validate_try(tree)
- node *tree;
+validate_try(node *tree)
{
int nch = NCH(tree);
int pos = 3;
@@ -1882,11 +1878,7 @@ validate_and_expr(node *tree)
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);