mirror of
https://github.com/python/cpython.git
synced 2025-12-11 03:20:01 +00:00
Remove the PyAST_Validate() function. It is no longer possible to
build a AST object (mod_ty type) with the public C API. The function
was already excluded from the limited C API (PEP 384).
Rename PyAST_Validate() function to _PyAST_Validate(), move it to the
internal C API, and don't export it anymore (replace PyAPI_FUNC with
extern).
The function was added in bpo-12575 by
the commit 832bfe2ebd.
14 lines
217 B
C
14 lines
217 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 */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_AST_H */
|
|
#endif /* !Py_LIMITED_API */
|