]> granicus.if.org Git - python/commitdiff
Removed useless Py_LIMITED_API checks.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 17 Aug 2014 10:29:13 +0000 (13:29 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 17 Aug 2014 10:29:13 +0000 (13:29 +0300)
Support for Py_LIMITED_API was introduced in Python 3.2.
Thanks Arfrever Frehtes Taifersar Arahesis.

Include/node.h
Include/sysmodule.h
Modules/posixmodule.h

index 9f6760c294615fde2b73f1b89132def85dda69af..8704da8b98fe903a87aaeb348bc0b354569d6c2d 100644 (file)
@@ -20,9 +20,7 @@ PyAPI_FUNC(node *) PyNode_New(int type);
 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)
index 8af7f82b00e70cd4f56c6283c5690385411c4cd0..025d78a4bb45a314dbf68c3eaf79fcae1c211cef 100644 (file)
@@ -23,9 +23,7 @@ PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
 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
 }
index 084e063f42db0e9c0a3aed90b0b962c8207469f3..6f9d4d3b9997b97cc15654e2703dca072ed8cf2f 100644 (file)
@@ -10,14 +10,12 @@ extern "C" {
 #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
 }