gh-121404: split compile.c into compile.c and codegen.c (#123651)

This commit is contained in:
Irit Katriel 2024-09-09 18:21:51 +01:00 committed by GitHub
parent 65fcaa38ad
commit 1a9d8917a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 6721 additions and 6711 deletions

View file

@ -51,6 +51,11 @@ typedef struct {
int id;
} _PyJumpTargetLabel;
#define NO_LABEL ((const _PyJumpTargetLabel){-1})
#define SAME_JUMP_TARGET_LABEL(L1, L2) ((L1).id == (L2).id)
#define IS_JUMP_TARGET_LABEL(L) (!SAME_JUMP_TARGET_LABEL((L), (NO_LABEL)))
PyAPI_FUNC(PyObject*)_PyInstructionSequence_New(void);
int _PyInstructionSequence_UseLabel(_PyInstructionSequence *seq, int lbl);