[Python-checkins] python/dist/src/Include parsetok.h,2.17,2.17.2.1

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Sun, 07 Jul 2002 10:43:10 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv31177/Include

Modified Files:
      Tag: ast-branch
	parsetok.h 
Log Message:
New preferred interface to parser is:
PyParser_ASTFromString
PyParser_ASTFromFile

Incorporates logic of theller's pending patch -- filename is passed
as arg to String version.



Index: parsetok.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/parsetok.h,v
retrieving revision 2.17
retrieving revision 2.17.2.1
diff -C2 -d -r2.17 -r2.17.2.1
*** parsetok.h	22 Mar 2002 23:52:35 -0000	2.17
--- parsetok.h	7 Jul 2002 17:43:07 -0000	2.17.2.1
***************
*** 33,36 ****
--- 33,41 ----
  						 perrdetail *, int);
  
+ extern DL_IMPORT(mod_ty) PyParser_ASTFromString(char *, char *, grammar *, 
+ 						int, perrdetail *, int);
+ extern DL_IMPORT(mod_ty) PyParser_ASTFromFile(FILE *, char *, grammar *,
+ 					      int, char *, char *,
+ 					      perrdetail *, int);
  #ifdef __cplusplus
  }