2020-04-22 19:29:27 -03:00
|
|
|
#ifndef Py_PEGENINTERFACE
|
|
|
|
#define Py_PEGENINTERFACE
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
2020-06-21 20:47:46 -03:00
|
|
|
#ifndef Py_LIMITED_API
|
|
|
|
PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(
|
2020-05-01 14:30:51 -03:00
|
|
|
const char *str,
|
|
|
|
const char *filename,
|
|
|
|
int mode,
|
|
|
|
PyCompilerFlags *flags,
|
|
|
|
PyArena *arena);
|
2020-06-21 20:47:46 -03:00
|
|
|
PyAPI_FUNC(struct _mod *) PyParser_ASTFromStringObject(
|
2020-05-01 14:30:51 -03:00
|
|
|
const char *str,
|
|
|
|
PyObject* filename,
|
|
|
|
int mode,
|
|
|
|
PyCompilerFlags *flags,
|
|
|
|
PyArena *arena);
|
2020-06-21 20:47:46 -03:00
|
|
|
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(
|
2020-05-01 14:30:51 -03:00
|
|
|
FILE *fp,
|
2020-06-21 20:47:46 -03:00
|
|
|
const char *filename,
|
|
|
|
const char* enc,
|
2020-05-01 14:30:51 -03:00
|
|
|
int mode,
|
2020-06-21 20:47:46 -03:00
|
|
|
const char *ps1,
|
|
|
|
const char *ps2,
|
|
|
|
PyCompilerFlags *flags,
|
|
|
|
int *errcode,
|
|
|
|
PyArena *arena);
|
|
|
|
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFileObject(
|
|
|
|
FILE *fp,
|
|
|
|
PyObject *filename_ob,
|
2020-05-01 14:30:51 -03:00
|
|
|
const char *enc,
|
2020-06-21 20:47:46 -03:00
|
|
|
int mode,
|
2020-05-01 14:30:51 -03:00
|
|
|
const char *ps1,
|
|
|
|
const char *ps2,
|
|
|
|
PyCompilerFlags *flags,
|
|
|
|
int *errcode,
|
|
|
|
PyArena *arena);
|
2020-06-21 20:47:46 -03:00
|
|
|
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFilename(
|
2020-05-01 14:30:51 -03:00
|
|
|
const char *filename,
|
|
|
|
int mode,
|
|
|
|
PyCompilerFlags *flags,
|
|
|
|
PyArena *arena);
|
2020-06-21 20:47:46 -03:00
|
|
|
#endif /* !Py_LIMITED_API */
|
2020-04-22 19:29:27 -03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2020-06-21 20:47:46 -03:00
|
|
|
#endif /* !Py_PEGENINTERFACE */
|