@@ -159,7 +159,7 @@ struct location {
159
159
#define LOCATION (LNO , END_LNO , COL , END_COL ) \
160
160
((const struct location){(LNO), (END_LNO), (COL), (END_COL)})
161
161
162
- #define NO_LOCATION (LOCATION( -1, -1, -1, -1))
162
+ #define NO_LOCATION { -1, -1, -1, -1}
163
163
164
164
struct instr {
165
165
int i_opcode ;
@@ -959,14 +959,18 @@ basicblock_next_instr(basicblock *b)
959
959
- before the "except" and "finally" clauses
960
960
*/
961
961
962
- #define SET_LOC (c , x ) \
963
- (c)->u->u_loc = LOCATION(( x)->lineno, \
964
- (x)->end_lineno, \
965
- (x)->col_offset, \
966
- (x)->end_col_offset)
962
+ #define SET_LOC (c , x ) \
963
+ (c)->u->u_loc.lineno = ( x)->lineno; \
964
+ (c)->u->u_loc.end_lineno = (x)->end_lineno; \
965
+ (c)->u->u_loc.col_offset = (x)->col_offset; \
966
+ (c)->u->u_loc.end_col_offset = (x)->end_col_offset;
967
967
968
968
// Artificial instructions
969
- #define UNSET_LOC (c ) (c)->u->u_loc = NO_LOCATION
969
+ #define UNSET_LOC (c ) \
970
+ (c)->u->u_loc.lineno = -1; \
971
+ (c)->u->u_loc.end_lineno = -1; \
972
+ (c)->u->u_loc.col_offset = -1; \
973
+ (c)->u->u_loc.end_col_offset = -1;
970
974
971
975
972
976
/* Return the stack effect of opcode with argument oparg.
0 commit comments