[Python-checkins] CVS: python/dist/src/Include errcode.h,2.8,2.9 node.h,2.12,2.13

Jeremy Hylton python-dev@python.org
Tue, 20 Jun 2000 12:10:47 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv509/Include

Modified Files:
	errcode.h node.h 
Log Message:
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."



Index: errcode.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/errcode.h,v
retrieving revision 2.8
retrieving revision 2.9
diff -C2 -r2.8 -r2.9
*** errcode.h	1998/04/09 21:37:20	2.8
--- errcode.h	2000/06/20 19:10:44	2.9
***************
*** 53,56 ****
--- 53,57 ----
  #define E_ERROR		17	/* Execution error */
  #define E_INDENT	18	/* Invalid indentation detected */
+ #define E_OVERFLOW      19      /* Node had too many children */
  
  #ifdef __cplusplus

Index: node.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/node.h,v
retrieving revision 2.12
retrieving revision 2.13
diff -C2 -r2.12 -r2.13
*** node.h	1998/12/04 18:48:11	2.12
--- node.h	2000/06/20 19:10:44	2.13
***************
*** 47,51 ****
  
  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(void) PyNode_Free Py_PROTO((node *n));
  
--- 47,51 ----
  
  extern DL_IMPORT(node *) PyNode_New Py_PROTO((int type));
! 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));