You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB

  1. #ifndef Py_PEGENINTERFACE
  2. #define Py_PEGENINTERFACE
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "Python.h"
  7. #ifndef Py_LIMITED_API
  8. PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(
  9. const char *str,
  10. const char *filename,
  11. int mode,
  12. PyCompilerFlags *flags,
  13. PyArena *arena);
  14. PyAPI_FUNC(struct _mod *) PyParser_ASTFromStringObject(
  15. const char *str,
  16. PyObject* filename,
  17. int mode,
  18. PyCompilerFlags *flags,
  19. PyArena *arena);
  20. PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(
  21. FILE *fp,
  22. const char *filename,
  23. const char* enc,
  24. int mode,
  25. const char *ps1,
  26. const char *ps2,
  27. PyCompilerFlags *flags,
  28. int *errcode,
  29. PyArena *arena);
  30. PyAPI_FUNC(struct _mod *) PyParser_ASTFromFileObject(
  31. FILE *fp,
  32. PyObject *filename_ob,
  33. const char *enc,
  34. int mode,
  35. const char *ps1,
  36. const char *ps2,
  37. PyCompilerFlags *flags,
  38. int *errcode,
  39. PyArena *arena);
  40. PyAPI_FUNC(struct _mod *) PyParser_ASTFromFilename(
  41. const char *filename,
  42. int mode,
  43. PyCompilerFlags *flags,
  44. PyArena *arena);
  45. #endif /* !Py_LIMITED_API */
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif /* !Py_PEGENINTERFACE */