Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a3faba

Browse files
authoredJul 25, 2023
pythongh-106869: Use new PyMemberDef constant names (python#106871)
* Remove '#include "structmember.h"'. * If needed, add <stddef.h> to get offsetof() function. * Update Parser/asdl_c.py to regenerate Python/Python-ast.c. * Replace: * T_SHORT => Py_T_SHORT * T_INT => Py_T_INT * T_LONG => Py_T_LONG * T_FLOAT => Py_T_FLOAT * T_DOUBLE => Py_T_DOUBLE * T_STRING => Py_T_STRING * T_OBJECT => _Py_T_OBJECT * T_CHAR => Py_T_CHAR * T_BYTE => Py_T_BYTE * T_UBYTE => Py_T_UBYTE * T_USHORT => Py_T_USHORT * T_UINT => Py_T_UINT * T_ULONG => Py_T_ULONG * T_STRING_INPLACE => Py_T_STRING_INPLACE * T_BOOL => Py_T_BOOL * T_OBJECT_EX => Py_T_OBJECT_EX * T_LONGLONG => Py_T_LONGLONG * T_ULONGLONG => Py_T_ULONGLONG * T_PYSSIZET => Py_T_PYSSIZET * T_NONE => _Py_T_NONE * READONLY => Py_READONLY * PY_AUDIT_READ => Py_AUDIT_READ * READ_RESTRICTED => Py_AUDIT_READ * PY_WRITE_RESTRICTED => _Py_WRITE_RESTRICTED * RESTRICTED => (READ_RESTRICTED | _Py_WRITE_RESTRICTED)
1 parent ed08238 commit 1a3faba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+472
-464
lines changed
 

‎Include/internal/pycore_frame.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ extern "C" {
55
#endif
66

77
#include <stdbool.h>
8-
#include <stddef.h>
9-
#include "pycore_code.h" // STATS
8+
#include <stddef.h> // offsetof()
9+
#include "pycore_code.h" // STATS
1010

1111
/* See Objects/frame_layout.md for an explanation of the frame stack
1212
* including explanation of the PyFrameObject and _PyInterpreterFrame

‎Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pycore_pylifecycle.h" // _Py_IsInterpreterFinalizing()
99
#include "pycore_pystate.h" // _PyThreadState_GET()
1010
#include "pycore_runtime_init.h" // _Py_ID()
11-
#include "structmember.h" // PyMemberDef
11+
1212
#include <stddef.h> // offsetof()
1313

1414

0 commit comments

Comments
 (0)