@@ -190,7 +190,7 @@ static int symtable_analyze(struct symtable *st);
190190static int symtable_enter_block (struct symtable * st , identifier name ,
191191 _Py_block_ty block , void * ast , int lineno ,
192192 int col_offset );
193- static int symtable_exit_block (struct symtable * st , void * ast );
193+ static int symtable_exit_block (struct symtable * st );
194194static int symtable_visit_stmt (struct symtable * st , stmt_ty s );
195195static int symtable_visit_expr (struct symtable * st , expr_ty s );
196196static int symtable_visit_genexp (struct symtable * st , expr_ty s );
@@ -206,7 +206,7 @@ static int symtable_visit_slice(struct symtable *st, slice_ty);
206206static int symtable_visit_params (struct symtable * st , asdl_seq * args );
207207static int symtable_visit_argannotations (struct symtable * st , asdl_seq * args );
208208static int symtable_implicit_arg (struct symtable * st , int pos );
209- static int symtable_visit_annotations (struct symtable * st , stmt_ty s , arguments_ty , expr_ty );
209+ static int symtable_visit_annotations (struct symtable * st , arguments_ty , expr_ty );
210210static int symtable_visit_withitem (struct symtable * st , withitem_ty item );
211211
212212
@@ -323,7 +323,7 @@ PySymtable_BuildObject(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
323323 "this compiler does not handle FunctionTypes" );
324324 goto error ;
325325 }
326- if (!symtable_exit_block (st , ( void * ) mod )) {
326+ if (!symtable_exit_block (st )) {
327327 PySymtable_Free (st );
328328 return NULL ;
329329 }
@@ -341,7 +341,7 @@ PySymtable_BuildObject(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
341341 PySymtable_Free (st );
342342 return NULL ;
343343 error :
344- (void ) symtable_exit_block (st , ( void * ) mod );
344+ (void ) symtable_exit_block (st );
345345 PySymtable_Free (st );
346346 return NULL ;
347347}
@@ -950,7 +950,7 @@ symtable_analyze(struct symtable *st)
950950*/
951951
952952static int
953- symtable_exit_block (struct symtable * st , void * ast )
953+ symtable_exit_block (struct symtable * st )
954954{
955955 Py_ssize_t size ;
956956
@@ -1184,7 +1184,7 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s)
11841184 VISIT_SEQ (st , expr , s -> v .FunctionDef .args -> defaults );
11851185 if (s -> v .FunctionDef .args -> kw_defaults )
11861186 VISIT_SEQ_WITH_NULL (st , expr , s -> v .FunctionDef .args -> kw_defaults );
1187- if (!symtable_visit_annotations (st , s , s -> v .FunctionDef .args ,
1187+ if (!symtable_visit_annotations (st , s -> v .FunctionDef .args ,
11881188 s -> v .FunctionDef .returns ))
11891189 VISIT_QUIT (st , 0 );
11901190 if (s -> v .FunctionDef .decorator_list )
@@ -1195,7 +1195,7 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s)
11951195 VISIT_QUIT (st , 0 );
11961196 VISIT (st , arguments , s -> v .FunctionDef .args );
11971197 VISIT_SEQ (st , stmt , s -> v .FunctionDef .body );
1198- if (!symtable_exit_block (st , s ))
1198+ if (!symtable_exit_block (st ))
11991199 VISIT_QUIT (st , 0 );
12001200 break ;
12011201 case ClassDef_kind : {
@@ -1213,7 +1213,7 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s)
12131213 st -> st_private = s -> v .ClassDef .name ;
12141214 VISIT_SEQ (st , stmt , s -> v .ClassDef .body );
12151215 st -> st_private = tmp ;
1216- if (!symtable_exit_block (st , s ))
1216+ if (!symtable_exit_block (st ))
12171217 VISIT_QUIT (st , 0 );
12181218 break ;
12191219 }
@@ -1402,7 +1402,7 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s)
14021402 if (s -> v .AsyncFunctionDef .args -> kw_defaults )
14031403 VISIT_SEQ_WITH_NULL (st , expr ,
14041404 s -> v .AsyncFunctionDef .args -> kw_defaults );
1405- if (!symtable_visit_annotations (st , s , s -> v .AsyncFunctionDef .args ,
1405+ if (!symtable_visit_annotations (st , s -> v .AsyncFunctionDef .args ,
14061406 s -> v .AsyncFunctionDef .returns ))
14071407 VISIT_QUIT (st , 0 );
14081408 if (s -> v .AsyncFunctionDef .decorator_list )
@@ -1414,7 +1414,7 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s)
14141414 st -> st_cur -> ste_coroutine = 1 ;
14151415 VISIT (st , arguments , s -> v .AsyncFunctionDef .args );
14161416 VISIT_SEQ (st , stmt , s -> v .AsyncFunctionDef .body );
1417- if (!symtable_exit_block (st , s ))
1417+ if (!symtable_exit_block (st ))
14181418 VISIT_QUIT (st , 0 );
14191419 break ;
14201420 case AsyncWith_kind :
@@ -1561,7 +1561,7 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
15611561 VISIT_QUIT (st , 0 );
15621562 VISIT (st , arguments , e -> v .Lambda .args );
15631563 VISIT (st , expr , e -> v .Lambda .body );
1564- if (!symtable_exit_block (st , ( void * ) e ))
1564+ if (!symtable_exit_block (st ))
15651565 VISIT_QUIT (st , 0 );
15661566 break ;
15671567 }
@@ -1710,8 +1710,7 @@ symtable_visit_argannotations(struct symtable *st, asdl_seq *args)
17101710}
17111711
17121712static int
1713- symtable_visit_annotations (struct symtable * st , stmt_ty s ,
1714- arguments_ty a , expr_ty returns )
1713+ symtable_visit_annotations (struct symtable * st , arguments_ty a , expr_ty returns )
17151714{
17161715 if (a -> posonlyargs && !symtable_visit_argannotations (st , a -> posonlyargs ))
17171716 return 0 ;
@@ -1889,7 +1888,7 @@ symtable_handle_comprehension(struct symtable *st, expr_ty e,
18891888
18901889 /* Outermost iter is received as an argument */
18911890 if (!symtable_implicit_arg (st , 0 )) {
1892- symtable_exit_block (st , ( void * ) e );
1891+ symtable_exit_block (st );
18931892 return 0 ;
18941893 }
18951894 /* Visit iteration variable target, and mark them as such */
@@ -1911,11 +1910,11 @@ symtable_handle_comprehension(struct symtable *st, expr_ty e,
19111910 PyErr_SyntaxLocationObject (st -> st_filename ,
19121911 st -> st_cur -> ste_lineno ,
19131912 st -> st_cur -> ste_col_offset + 1 );
1914- symtable_exit_block (st , ( void * ) e );
1913+ symtable_exit_block (st );
19151914 return 0 ;
19161915 }
19171916 st -> st_cur -> ste_generator = is_generator ;
1918- return symtable_exit_block (st , ( void * ) e );
1917+ return symtable_exit_block (st );
19191918}
19201919
19211920static int
0 commit comments