[Python-checkins] python/dist/src/Include pythonrun.h,2.49.2.2,2.49.2.3
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Fri, 30 Aug 2002 13:55:01 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv24065/Include
Modified Files:
Tag: ast-branch
pythonrun.h
Log Message:
Extend PyParser_ASTFromFile() with int *errcode argument.
If errocode is non-NULL and an error occurred in the parser, errcode
will be set to the parser errorcode, e.g. E_EOF.
We need this change so that PyRun_InteractiveOneFlags() can detect
E_EOF and exit instead of reporting "unexpected EOF during parsing."
Index: pythonrun.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pythonrun.h,v
retrieving revision 2.49.2.2
retrieving revision 2.49.2.3
diff -C2 -d -r2.49.2.2 -r2.49.2.3
*** pythonrun.h 23 Aug 2002 18:13:27 -0000 2.49.2.2
--- pythonrun.h 30 Aug 2002 20:54:59 -0000 2.49.2.3
***************
*** 37,41 ****
int, int);
DL_IMPORT(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int,
! char *, char *, int);
DL_IMPORT(struct _node *) PyParser_SimpleParseString(char *, int);
DL_IMPORT(struct _node *) PyParser_SimpleParseFile(FILE *, char *, int);
--- 37,41 ----
int, int);
DL_IMPORT(struct _mod *) PyParser_ASTFromFile(FILE *, const char *, int,
! char *, char *, int, int *);
DL_IMPORT(struct _node *) PyParser_SimpleParseString(char *, int);
DL_IMPORT(struct _node *) PyParser_SimpleParseFile(FILE *, char *, int);