mirror of
https://github.com/python/cpython.git
synced 2026-01-03 22:12:27 +00:00
Move _PyAST_GetDocString() and _PyAST_ExprAsUnicode() functions the internal C API: from Include/ast.h to a new Include/internal/pycore_ast.h header file. Don't export these functions anymore: replace PyAPI_FUNC() with extern. Remove also unused includes.
16 lines
258 B
C
16 lines
258 B
C
#ifndef Py_LIMITED_API
|
|
#ifndef Py_AST_H
|
|
#define Py_AST_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "Python-ast.h" /* mod_ty */
|
|
|
|
PyAPI_FUNC(int) PyAST_Validate(mod_ty);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_AST_H */
|
|
#endif /* !Py_LIMITED_API */
|