mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
gh-111354: remove comparisons with enum values, variable reuse, unused imports in genobject.c (#111708)
This commit is contained in:
parent
97c4c06d0d
commit
30ec968bef
2 changed files with 15 additions and 22 deletions
|
@ -45,6 +45,7 @@ typedef enum _framestate {
|
|||
} PyFrameState;
|
||||
|
||||
#define FRAME_STATE_SUSPENDED(S) ((S) == FRAME_SUSPENDED || (S) == FRAME_SUSPENDED_YIELD_FROM)
|
||||
#define FRAME_STATE_FINISHED(S) ((S) >= FRAME_COMPLETED)
|
||||
|
||||
enum _frameowner {
|
||||
FRAME_OWNED_BY_THREAD = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue