[Python-checkins] cpython (2.7): Removed useless Py_LIMITED_API checks.
serhiy.storchaka
python-checkins at python.org
Sun Aug 17 12:29:51 CEST 2014
http://hg.python.org/cpython/rev/2e417d9a2b1c
changeset: 92129:2e417d9a2b1c
branch: 2.7
parent: 92120:5336a01542e2
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Aug 17 13:29:13 2014 +0300
summary:
Removed useless Py_LIMITED_API checks.
Support for Py_LIMITED_API was introduced in Python 3.2.
Thanks Arfrever Frehtes Taifersar Arahesis.
files:
Include/node.h | 2 --
Include/sysmodule.h | 2 --
Modules/posixmodule.h | 2 --
3 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/Include/node.h b/Include/node.h
--- a/Include/node.h
+++ b/Include/node.h
@@ -20,9 +20,7 @@
PyAPI_FUNC(int) PyNode_AddChild(node *n, int type,
char *str, int lineno, int col_offset);
PyAPI_FUNC(void) PyNode_Free(node *n);
-#ifndef Py_LIMITED_API
Py_ssize_t _PyNode_SizeOf(node *n);
-#endif
/* Node access functions */
#define NCH(n) ((n)->n_nchildren)
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -23,9 +23,7 @@
PyAPI_FUNC(void) PySys_AddWarnOption(char *);
PyAPI_FUNC(int) PySys_HasWarnOptions(void);
-#ifndef Py_LIMITED_API
PyAPI_DATA(size_t) _PySys_GetSizeOf(PyObject *);
-#endif
#ifdef __cplusplus
}
diff --git a/Modules/posixmodule.h b/Modules/posixmodule.h
--- a/Modules/posixmodule.h
+++ b/Modules/posixmodule.h
@@ -10,14 +10,12 @@
#include <sys/types.h>
#endif
-#ifndef Py_LIMITED_API
#ifndef MS_WINDOWS
PyAPI_FUNC(PyObject *) _PyInt_FromUid(uid_t);
PyAPI_FUNC(PyObject *) _PyInt_FromGid(gid_t);
PyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, void *);
PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, void *);
#endif /* MS_WINDOWS */
-#endif
#ifdef __cplusplus
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list