diff Include/node.h @ 12970:63436719d12e legacy-trunk

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."
author Jeremy Hylton <jeremy@alum.mit.edu>
date Tue, 20 Jun 2000 19:10:44 +0000
parents 60fdb1db1175
children 916fb024ce94
line wrap: on
line diff
--- a/Include/node.h	Tue Jun 20 18:52:57 2000 +0000
+++ b/Include/node.h	Tue Jun 20 19:10:44 2000 +0000
@@ -46,7 +46,7 @@
 } 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 */