mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
gh-105148: make _PyASTOptimizeState internal to ast_opt.c (#105149)
This commit is contained in:
parent
dd29ae26f8
commit
f990bb8b2d
5 changed files with 26 additions and 26 deletions
|
|
@ -21,18 +21,11 @@ PyAPI_FUNC(PyCodeObject*) _PyAST_Compile(
|
|||
|
||||
static const _PyCompilerSrcLocation NO_LOCATION = {-1, -1, -1, -1};
|
||||
|
||||
typedef struct {
|
||||
int optimize;
|
||||
int ff_features;
|
||||
|
||||
int recursion_depth; /* current recursion depth */
|
||||
int recursion_limit; /* recursion limit */
|
||||
} _PyASTOptimizeState;
|
||||
|
||||
extern int _PyAST_Optimize(
|
||||
struct _mod *,
|
||||
struct _arena *arena,
|
||||
_PyASTOptimizeState *state);
|
||||
int optimize,
|
||||
int ff_features);
|
||||
|
||||
typedef struct {
|
||||
int h_offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue