Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename _PyCompilerInstruction --> _PyCompile_Instruction
  • Loading branch information
iritkatriel committed Apr 27, 2023
commit 191cc32f04d863e038cde8253eed616817260cd4
4 changes: 2 additions & 2 deletions Include/internal/pycore_compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ typedef struct {
int i_oparg;
_PyCompilerSrcLocation i_loc;
_PyCompile_ExceptHandlerInfo i_except_handler_info;
} _PyCompilerInstruction;
} _PyCompile_Instruction;

typedef struct {
_PyCompilerInstruction *s_instrs;
_PyCompile_Instruction *s_instrs;
int s_allocated;
int s_used;

Expand Down
2 changes: 1 addition & 1 deletion Python/assemble.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

typedef _PyCompilerSrcLocation location;
typedef _PyCompilerInstruction instruction;
typedef _PyCompile_Instruction instruction;
typedef _PyCompile_InstructionSequence instr_sequence;

static inline bool
Expand Down
2 changes: 1 addition & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ _PyCompile_InstrSize(int opcode, int oparg)
return extended_args + 1 + caches;
}

typedef _PyCompilerInstruction instruction;
typedef _PyCompile_Instruction instruction;
typedef _PyCompile_InstructionSequence instr_sequence;

#define INITIAL_INSTR_SEQUENCE_SIZE 100
Expand Down