mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #20315: Removed support for backward compatibility with early 2.x versions.
This commit is contained in:
parent
6c01e38677
commit
7e52705ee3
6 changed files with 3 additions and 93 deletions
|
@ -33,20 +33,6 @@ Copyright (C) 1994 Steen Lumholt.
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
/* Allow using this code in Python 2.[12] */
|
||||
#ifndef PyDoc_STRVAR
|
||||
#define PyDoc_STRVAR(name,str) static char name[] = str
|
||||
#endif
|
||||
|
||||
#ifndef PyMODINIT_FUNC
|
||||
#define PyMODINIT_FUNC void
|
||||
#endif
|
||||
|
||||
#ifndef PyBool_Check
|
||||
#define PyBool_Check(o) 0
|
||||
#define PyBool_FromLong PyLong_FromLong
|
||||
#endif
|
||||
|
||||
#define CHECK_SIZE(size, elemsize) \
|
||||
((size_t)(size) <= Py_MAX((size_t)INT_MAX, UINT_MAX / (size_t)(elemsize)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue