[Python-checkins] python/dist/src/Include pgen.h,NONE,2.1 parsetok.h,2.21,2.22
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 17 Apr 2003 07:55:43 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv14389/Include
Modified Files:
parsetok.h
Added Files:
pgen.h
Log Message:
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
work. This includes some more code that used to be part of pgen in
the main parser; I'm okay with that. I'll see if the Windows build
needs work next.
--- NEW FILE: pgen.h ---
#ifndef Py_PGEN_H
#define Py_PGEN_H
#ifdef __cplusplus
extern "C" {
#endif
/* Parser generator interface */
extern grammar *meta_grammar(void);
struct _node;
extern grammar *pgen(struct _node *);
#ifdef __cplusplus
}
#endif
#endif /* !Py_PGEN_H */
Index: parsetok.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/parsetok.h,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -d -r2.21 -r2.22
*** parsetok.h 13 Feb 2003 22:07:52 -0000 2.21
--- parsetok.h 17 Apr 2003 14:55:40 -0000 2.22
***************
*** 39,42 ****
--- 39,46 ----
grammar *, int,
perrdetail *, int);
+
+ /* Note that he following function is defined in pythonrun.c not parsetok.c. */
+ PyAPI_FUNC(void) PyParser_SetError(perrdetail *);
+
#ifdef __cplusplus
}