gh-105148: make _PyASTOptimizeState internal to ast_opt.c (#105149)

This commit is contained in:
Irit Katriel 2023-05-31 20:21:46 +01:00 committed by GitHub
parent dd29ae26f8
commit f990bb8b2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 26 deletions

View file

@ -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;