gh-111354: remove comparisons with enum values, variable reuse, unused imports in genobject.c (#111708)

This commit is contained in:
Irit Katriel 2023-11-09 10:27:20 +00:00 committed by GitHub
parent 97c4c06d0d
commit 30ec968bef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 22 deletions

View file

@ -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,