diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-03-15 12:21:47 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-03-15 12:21:47 -0500 |
commit | afe58888980f88d8cbcfdd6f97bf849850dcf17e (patch) | |
tree | 9fe2ca3bc2937f5232740a402b4dbde31855607f /Include/parsetok.h | |
parent | 54ac1ddd428350cbad5f4300bf94dedb75488ec8 (diff) | |
parent | c4e5497ec6fe913bd00e318a828486c2efb20798 (diff) | |
download | cpython-afe58888980f88d8cbcfdd6f97bf849850dcf17e.tar.gz |
merge 3.3
Diffstat (limited to 'Include/parsetok.h')
-rw-r--r-- | Include/parsetok.h | 49 |
1 files changed, 38 insertions, 11 deletions
diff --git a/Include/parsetok.h b/Include/parsetok.h index 911dfc10e4..2acb854672 100644 --- a/Include/parsetok.h +++ b/Include/parsetok.h @@ -38,29 +38,49 @@ typedef struct { PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int, perrdetail *); PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int, - char *, char *, perrdetail *); + const char *, const char *, + perrdetail *); PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int, perrdetail *, int); -PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, - const char*, grammar *, - int, char *, char *, - perrdetail *, int); +PyAPI_FUNC(node *) PyParser_ParseFileFlags( + FILE *fp, + const char *filename, /* decoded from the filesystem encoding */ + const char *enc, + grammar *g, + int start, + const char *ps1, + const char *ps2, + perrdetail *err_ret, + int flags); PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx( FILE *fp, const char *filename, /* decoded from the filesystem encoding */ const char *enc, grammar *g, int start, - char *ps1, - char *ps2, + const char *ps1, + const char *ps2, + perrdetail *err_ret, + int *flags); +PyAPI_FUNC(node *) PyParser_ParseFileObject( + FILE *fp, + PyObject *filename, + const char *enc, + grammar *g, + int start, + const char *ps1, + const char *ps2, perrdetail *err_ret, int *flags); -PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(const char *, - const char *, - grammar *, int, - perrdetail *, int); +PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename( + const char *s, + const char *filename, /* decoded from the filesystem encoding */ + grammar *g, + int start, + perrdetail *err_ret, + int flags); PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx( const char *s, const char *filename, /* decoded from the filesystem encoding */ @@ -68,6 +88,13 @@ PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx( int start, perrdetail *err_ret, int *flags); +PyAPI_FUNC(node *) PyParser_ParseStringObject( + const char *s, + PyObject *filename, + grammar *g, + int start, + perrdetail *err_ret, + int *flags); /* Note that the following functions are defined in pythonrun.c, not in parsetok.c */ |