@@ -179,7 +179,7 @@ struct compiler {
179
179
static int compiler_enter_scope (struct compiler * , identifier , int , void * , int );
180
180
static void compiler_free (struct compiler * );
181
181
static basicblock * compiler_new_block (struct compiler * );
182
- static int compiler_next_instr (struct compiler * , basicblock * );
182
+ static int compiler_next_instr (basicblock * );
183
183
static int compiler_addop (struct compiler * , int );
184
184
static int compiler_addop_i (struct compiler * , int , Py_ssize_t );
185
185
static int compiler_addop_j (struct compiler * , int , basicblock * , int );
@@ -196,7 +196,7 @@ static int compiler_annassign(struct compiler *, stmt_ty);
196
196
static int compiler_subscript (struct compiler * , expr_ty );
197
197
static int compiler_slice (struct compiler * , expr_ty );
198
198
199
- static int inplace_binop (struct compiler * , operator_ty );
199
+ static int inplace_binop (operator_ty );
200
200
static int are_all_items_const (asdl_seq * , Py_ssize_t , Py_ssize_t );
201
201
static int expr_constant (expr_ty );
202
202
@@ -803,7 +803,7 @@ compiler_use_next_block(struct compiler *c, basicblock *block)
803
803
*/
804
804
805
805
static int
806
- compiler_next_instr (struct compiler * c , basicblock * b )
806
+ compiler_next_instr (basicblock * b )
807
807
{
808
808
assert (b != NULL );
809
809
if (b -> b_instr == NULL ) {
@@ -1159,7 +1159,7 @@ compiler_addop(struct compiler *c, int opcode)
1159
1159
if (c -> c_do_not_emit_bytecode ) {
1160
1160
return 1 ;
1161
1161
}
1162
- off = compiler_next_instr (c , c -> u -> u_curblock );
1162
+ off = compiler_next_instr (c -> u -> u_curblock );
1163
1163
if (off < 0 )
1164
1164
return 0 ;
1165
1165
b = c -> u -> u_curblock ;
@@ -1173,7 +1173,7 @@ compiler_addop(struct compiler *c, int opcode)
1173
1173
}
1174
1174
1175
1175
static Py_ssize_t
1176
- compiler_add_o (struct compiler * c , PyObject * dict , PyObject * o )
1176
+ compiler_add_o (PyObject * dict , PyObject * o )
1177
1177
{
1178
1178
PyObject * v ;
1179
1179
Py_ssize_t arg ;
@@ -1321,7 +1321,7 @@ compiler_add_const(struct compiler *c, PyObject *o)
1321
1321
return -1 ;
1322
1322
}
1323
1323
1324
- Py_ssize_t arg = compiler_add_o (c , c -> u -> u_consts , key );
1324
+ Py_ssize_t arg = compiler_add_o (c -> u -> u_consts , key );
1325
1325
Py_DECREF (key );
1326
1326
return arg ;
1327
1327
}
@@ -1347,7 +1347,7 @@ compiler_addop_o(struct compiler *c, int opcode, PyObject *dict,
1347
1347
return 1 ;
1348
1348
}
1349
1349
1350
- Py_ssize_t arg = compiler_add_o (c , dict , o );
1350
+ Py_ssize_t arg = compiler_add_o (dict , o );
1351
1351
if (arg < 0 )
1352
1352
return 0 ;
1353
1353
return compiler_addop_i (c , opcode , arg );
@@ -1366,7 +1366,7 @@ compiler_addop_name(struct compiler *c, int opcode, PyObject *dict,
1366
1366
PyObject * mangled = _Py_Mangle (c -> u -> u_private , o );
1367
1367
if (!mangled )
1368
1368
return 0 ;
1369
- arg = compiler_add_o (c , dict , mangled );
1369
+ arg = compiler_add_o (dict , mangled );
1370
1370
Py_DECREF (mangled );
1371
1371
if (arg < 0 )
1372
1372
return 0 ;
@@ -1397,7 +1397,7 @@ compiler_addop_i(struct compiler *c, int opcode, Py_ssize_t oparg)
1397
1397
assert (HAS_ARG (opcode ));
1398
1398
assert (0 <= oparg && oparg <= 2147483647 );
1399
1399
1400
- off = compiler_next_instr (c , c -> u -> u_curblock );
1400
+ off = compiler_next_instr (c -> u -> u_curblock );
1401
1401
if (off < 0 )
1402
1402
return 0 ;
1403
1403
i = & c -> u -> u_curblock -> b_instr [off ];
@@ -1419,7 +1419,7 @@ compiler_addop_j(struct compiler *c, int opcode, basicblock *b, int absolute)
1419
1419
1420
1420
assert (HAS_ARG (opcode ));
1421
1421
assert (b != NULL );
1422
- off = compiler_next_instr (c , c -> u -> u_curblock );
1422
+ off = compiler_next_instr (c -> u -> u_curblock );
1423
1423
if (off < 0 )
1424
1424
return 0 ;
1425
1425
i = & c -> u -> u_curblock -> b_instr [off ];
@@ -3439,7 +3439,7 @@ unaryop(unaryop_ty op)
3439
3439
}
3440
3440
3441
3441
static int
3442
- binop (struct compiler * c , operator_ty op )
3442
+ binop (operator_ty op )
3443
3443
{
3444
3444
switch (op ) {
3445
3445
case Add :
@@ -3476,7 +3476,7 @@ binop(struct compiler *c, operator_ty op)
3476
3476
}
3477
3477
3478
3478
static int
3479
- inplace_binop (struct compiler * c , operator_ty op )
3479
+ inplace_binop (operator_ty op )
3480
3480
{
3481
3481
switch (op ) {
3482
3482
case Add :
@@ -3637,7 +3637,7 @@ compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
3637
3637
}
3638
3638
3639
3639
assert (op );
3640
- arg = compiler_add_o (c , dict , mangled );
3640
+ arg = compiler_add_o (dict , mangled );
3641
3641
Py_DECREF (mangled );
3642
3642
if (arg < 0 )
3643
3643
return 0 ;
@@ -4961,7 +4961,7 @@ compiler_visit_expr1(struct compiler *c, expr_ty e)
4961
4961
case BinOp_kind :
4962
4962
VISIT (c , expr , e -> v .BinOp .left );
4963
4963
VISIT (c , expr , e -> v .BinOp .right );
4964
- ADDOP (c , binop (c , e -> v .BinOp .op ));
4964
+ ADDOP (c , binop (e -> v .BinOp .op ));
4965
4965
break ;
4966
4966
case UnaryOp_kind :
4967
4967
VISIT (c , expr , e -> v .UnaryOp .operand );
@@ -5130,7 +5130,7 @@ compiler_augassign(struct compiler *c, stmt_ty s)
5130
5130
return 0 ;
5131
5131
VISIT (c , expr , auge );
5132
5132
VISIT (c , expr , s -> v .AugAssign .value );
5133
- ADDOP (c , inplace_binop (c , s -> v .AugAssign .op ));
5133
+ ADDOP (c , inplace_binop (s -> v .AugAssign .op ));
5134
5134
auge -> v .Attribute .ctx = AugStore ;
5135
5135
VISIT (c , expr , auge );
5136
5136
break ;
@@ -5142,15 +5142,15 @@ compiler_augassign(struct compiler *c, stmt_ty s)
5142
5142
return 0 ;
5143
5143
VISIT (c , expr , auge );
5144
5144
VISIT (c , expr , s -> v .AugAssign .value );
5145
- ADDOP (c , inplace_binop (c , s -> v .AugAssign .op ));
5145
+ ADDOP (c , inplace_binop (s -> v .AugAssign .op ));
5146
5146
auge -> v .Subscript .ctx = AugStore ;
5147
5147
VISIT (c , expr , auge );
5148
5148
break ;
5149
5149
case Name_kind :
5150
5150
if (!compiler_nameop (c , e -> v .Name .id , Load ))
5151
5151
return 0 ;
5152
5152
VISIT (c , expr , s -> v .AugAssign .value );
5153
- ADDOP (c , inplace_binop (c , s -> v .AugAssign .op ));
5153
+ ADDOP (c , inplace_binop (s -> v .AugAssign .op ));
5154
5154
return compiler_nameop (c , e -> v .Name .id , Store );
5155
5155
default :
5156
5156
PyErr_Format (PyExc_SystemError ,
0 commit comments