Skip to content

Commit 9b5dc34

Browse files
committed
trivial stuff
1 parent 9220fc1 commit 9b5dc34

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Refactor the compiler's code-gen functions to reduce boilerplate and
2-
repetition.
1+
Refactor the compiler to reduce boilerplate and repetition.

Python/compile.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,9 @@ is_relative_jump(struct instr *i)
202202
}
203203

204204
static inline int
205-
is_block_push(struct instr *instr)
205+
is_block_push(struct instr *i)
206206
{
207-
int opcode = instr->i_opcode;
208-
return IS_BLOCK_PUSH_OPCODE(opcode);
207+
return IS_BLOCK_PUSH_OPCODE(i->i_opcode);
209208
}
210209

211210
static inline int
@@ -385,7 +384,6 @@ struct compiler_unit {
385384
struct location u_loc; /* line/column info of the current stmt */
386385
};
387386

388-
389387
/* This struct captures the global state of a compilation.
390388
391389
The u pointer points to the current compilation unit, while units

0 commit comments

Comments
 (0)