[Python-checkins] python/dist/src/Python pythonrun.c,2.187,2.188

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 17 Apr 2003 09:02:30 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv17595

Modified Files:
	pythonrun.c 
Log Message:
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
wrapper around err_input().


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.187
retrieving revision 2.188
diff -C2 -d -r2.187 -r2.188
*** pythonrun.c	17 Apr 2003 15:24:21 -0000	2.187
--- pythonrun.c	17 Apr 2003 16:02:26 -0000	2.188
***************
*** 1265,1268 ****
--- 1265,1277 ----
  }
  
+ /* May want to move a more generalized form of this to parsetok.c or
+    even parser modules. */
+ 
+ void
+ PyParser_SetError(perrdetail *err)
+ {
+ 	err_input(err);
+ }
+ 
  /* Set the error appropriate to the given input error code (see errcode.h) */