From f880bff41ae75b1ae4e82183c39c8dc59c42bb49 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 17 Aug 2014 13:29:13 +0300 Subject: Removed useless Py_LIMITED_API checks. Support for Py_LIMITED_API was introduced in Python 3.2. Thanks Arfrever Frehtes Taifersar Arahesis. --- Include/node.h | 2 -- Include/sysmodule.h | 2 -- Modules/posixmodule.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/Include/node.h b/Include/node.h index 9f6760c..8704da8 100644 --- a/Include/node.h +++ b/Include/node.h @@ -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) diff --git a/Include/sysmodule.h b/Include/sysmodule.h index 8af7f82..025d78a 100644 --- a/Include/sysmodule.h +++ b/Include/sysmodule.h @@ -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 } diff --git a/Modules/posixmodule.h b/Modules/posixmodule.h index 084e063..6f9d4d3 100644 --- a/Modules/posixmodule.h +++ b/Modules/posixmodule.h @@ -10,14 +10,12 @@ extern "C" { #include #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 } -- cgit v0.12