summaryrefslogtreecommitdiffstats
path: root/Include/node.h
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-06-20 19:10:44 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-06-20 19:10:44 (GMT)
commit94988067b96c6187fd940eaff99c2c5a68daac68 (patch)
tree681d7a64160eeab1ece2685bb234971d404ef0a6 /Include/node.h
parent56c807d318954222bb67167477d98eafb6b85d81 (diff)
downloadcpython-94988067b96c6187fd940eaff99c2c5a68daac68.zip
cpython-94988067b96c6187fd940eaff99c2c5a68daac68.tar.gz
cpython-94988067b96c6187fd940eaff99c2c5a68daac68.tar.bz2
Add new parser error code, E_OVERFLOW. This error is returned when
the number of children of a node exceeds the max possible value for the short that is used to count them. The Python runtime converts this parser error into the SyntaxError "expression too long."
Diffstat (limited to 'Include/node.h')
-rw-r--r--Include/node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/node.h b/Include/node.h
index 7f30923..3a564f7 100644
--- a/Include/node.h
+++ b/Include/node.h
@@ -46,7 +46,7 @@ typedef struct _node {
} node;
extern DL_IMPORT(node *) PyNode_New Py_PROTO((int type));
-extern DL_IMPORT(node *) PyNode_AddChild Py_PROTO((node *n, int type, char *str, int lineno));
+extern DL_IMPORT(int) PyNode_AddChild Py_PROTO((node *n, int type, char *str, int lineno));
extern DL_IMPORT(void) PyNode_Free Py_PROTO((node *n));
/* Node access functions */