mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
ANSI-fying
added excplicit node * parameter to termvalid argument in validate_two_chain_ops of parsermodule.c (as proposed by fred)
This commit is contained in:
parent
41c36ffe83
commit
286da3b46a
4 changed files with 55 additions and 157 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue