mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
bpo-46670: Remove unused macros in the Objects directory (GH-31193)
This commit is contained in:
parent
4f1d3f33dd
commit
760349198d
@ -292,7 +292,6 @@ _PyDict_DebugMallocStats(FILE *out)
|
||||
}
|
||||
|
||||
#define DK_MASK(dk) (DK_SIZE(dk)-1)
|
||||
#define IS_POWER_OF_2(x) (((x) & (x-1)) == 0)
|
||||
|
||||
static void free_keys_object(PyDictKeysObject *keys);
|
||||
|
||||
|
@ -67,14 +67,6 @@ class memoryview "PyMemoryViewObject *" "&PyMemoryView_Type"
|
||||
*/
|
||||
|
||||
|
||||
#define CHECK_MBUF_RELEASED(mbuf) \
|
||||
if (((_PyManagedBufferObject *)mbuf)->flags&_Py_MANAGED_BUFFER_RELEASED) { \
|
||||
PyErr_SetString(PyExc_ValueError, \
|
||||
"operation forbidden on released memoryview object"); \
|
||||
return NULL; \
|
||||
}
|
||||
|
||||
|
||||
static inline _PyManagedBufferObject *
|
||||
mbuf_alloc(void)
|
||||
{
|
||||
|
@ -900,7 +900,6 @@ static int running_on_valgrind = -1;
|
||||
* currently targets.
|
||||
*/
|
||||
#define SYSTEM_PAGE_SIZE (4 * 1024)
|
||||
#define SYSTEM_PAGE_SIZE_MASK (SYSTEM_PAGE_SIZE - 1)
|
||||
|
||||
/*
|
||||
* Maximum amount of memory managed by the allocator for small requests.
|
||||
|
@ -14,8 +14,6 @@
|
||||
#define DECIMAL_MASK 0x02
|
||||
#define DIGIT_MASK 0x04
|
||||
#define LOWER_MASK 0x08
|
||||
#define LINEBREAK_MASK 0x10
|
||||
#define SPACE_MASK 0x20
|
||||
#define TITLE_MASK 0x40
|
||||
#define UPPER_MASK 0x80
|
||||
#define XID_START_MASK 0x100
|
||||
|
Loading…
Reference in New Issue
Block a user