@@ -231,21 +231,21 @@ typedef enum {
231231 ITERABLE_IN_LOCAL = 0 ,
232232 ITERABLE_ON_STACK = 1 ,
233233 ITERATOR_ON_STACK = 2 ,
234- } IterStackState ;
234+ } IterStackPosition ;
235235
236236static int codegen_sync_comprehension_generator (
237237 compiler * c , location loc ,
238238 asdl_comprehension_seq * generators , int gen_index ,
239239 int depth ,
240240 expr_ty elt , expr_ty val , int type ,
241- IterStackState iter_on_stack );
241+ IterStackPosition iter_pos );
242242
243243static int codegen_async_comprehension_generator (
244244 compiler * c , location loc ,
245245 asdl_comprehension_seq * generators , int gen_index ,
246246 int depth ,
247247 expr_ty elt , expr_ty val , int type ,
248- IterStackState iter_on_stack );
248+ IterStackPosition iter_pos );
249249
250250static int codegen_pattern (compiler * , pattern_ty , pattern_context * );
251251static int codegen_match (compiler * , stmt_ty );
@@ -4424,18 +4424,18 @@ codegen_comprehension_generator(compiler *c, location loc,
44244424 asdl_comprehension_seq * generators , int gen_index ,
44254425 int depth ,
44264426 expr_ty elt , expr_ty val , int type ,
4427- IterStackState iter_on_stack )
4427+ IterStackPosition iter_pos )
44284428{
44294429 comprehension_ty gen ;
44304430 gen = (comprehension_ty )asdl_seq_GET (generators , gen_index );
44314431 if (gen -> is_async ) {
44324432 return codegen_async_comprehension_generator (
44334433 c , loc , generators , gen_index , depth , elt , val , type ,
4434- iter_on_stack );
4434+ iter_pos );
44354435 } else {
44364436 return codegen_sync_comprehension_generator (
44374437 c , loc , generators , gen_index , depth , elt , val , type ,
4438- iter_on_stack );
4438+ iter_pos );
44394439 }
44404440}
44414441
@@ -4444,7 +4444,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
44444444 asdl_comprehension_seq * generators ,
44454445 int gen_index , int depth ,
44464446 expr_ty elt , expr_ty val , int type ,
4447- IterStackState iter_on_stack )
4447+ IterStackPosition iter_pos )
44484448{
44494449 /* generate code for the iterator, then each of the ifs,
44504450 and then write to the element */
@@ -4456,7 +4456,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
44564456 comprehension_ty gen = (comprehension_ty )asdl_seq_GET (generators ,
44574457 gen_index );
44584458
4459- if (iter_on_stack == ITERABLE_IN_LOCAL ) {
4459+ if (iter_pos == ITERABLE_IN_LOCAL ) {
44604460 if (gen_index == 0 ) {
44614461 assert (METADATA (c )-> u_argcount == 1 );
44624462 ADDOP_I (c , loc , LOAD_FAST , 0 );
@@ -4491,7 +4491,7 @@ codegen_sync_comprehension_generator(compiler *c, location loc,
44914491 }
44924492
44934493 if (IS_JUMP_TARGET_LABEL (start )) {
4494- if (iter_on_stack != ITERATOR_ON_STACK ) {
4494+ if (iter_pos != ITERATOR_ON_STACK ) {
44954495 ADDOP (c , LOC (gen -> iter ), GET_ITER );
44964496 depth += 1 ;
44974497 }
@@ -4571,7 +4571,7 @@ codegen_async_comprehension_generator(compiler *c, location loc,
45714571 asdl_comprehension_seq * generators ,
45724572 int gen_index , int depth ,
45734573 expr_ty elt , expr_ty val , int type ,
4574- IterStackState iter_on_stack )
4574+ IterStackPosition iter_pos )
45754575{
45764576 NEW_JUMP_TARGET_LABEL (c , start );
45774577 NEW_JUMP_TARGET_LABEL (c , send );
@@ -4581,7 +4581,7 @@ codegen_async_comprehension_generator(compiler *c, location loc,
45814581 comprehension_ty gen = (comprehension_ty )asdl_seq_GET (generators ,
45824582 gen_index );
45834583
4584- if (iter_on_stack == ITERABLE_IN_LOCAL ) {
4584+ if (iter_pos == ITERABLE_IN_LOCAL ) {
45854585 if (gen_index == 0 ) {
45864586 assert (METADATA (c )-> u_argcount == 1 );
45874587 ADDOP_I (c , loc , LOAD_FAST , 0 );
@@ -4591,7 +4591,7 @@ codegen_async_comprehension_generator(compiler *c, location loc,
45914591 VISIT (c , expr , gen -> iter );
45924592 }
45934593 }
4594- if (iter_on_stack != ITERATOR_ON_STACK ) {
4594+ if (iter_pos != ITERATOR_ON_STACK ) {
45954595 ADDOP (c , LOC (gen -> iter ), GET_AITER );
45964596 }
45974597
@@ -4823,7 +4823,7 @@ codegen_comprehension(compiler *c, expr_ty e, int type,
48234823 location loc = LOC (e );
48244824
48254825 outermost = (comprehension_ty ) asdl_seq_GET (generators , 0 );
4826- IterStackState iter_state ;
4826+ IterStackPosition iter_state ;
48274827 if (is_inlined ) {
48284828 VISIT (c , expr , outermost -> iter );
48294829 if (push_inlined_comprehension_state (c , loc , entry , & inline_state )) {
0 commit comments