diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-12 19:06:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 19:06:42 (GMT) |
commit | e5024517811ee990b770fca0ba7058742d00e032 (patch) | |
tree | 6da191463cc8ff17b6c4ec4e4479015e851d5244 /Modules | |
parent | 019f0a0cb85ebc234356415f3638b9bd77528e55 (diff) | |
download | cpython-e5024517811ee990b770fca0ba7058742d00e032.zip cpython-e5024517811ee990b770fca0ba7058742d00e032.tar.gz cpython-e5024517811ee990b770fca0ba7058742d00e032.tar.bz2 |
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_hashopenssl.c | 2 | ||||
-rw-r--r-- | Modules/_io/winconsoleio.c | 2 | ||||
-rw-r--r-- | Modules/posixmodule.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 40cd632..7121224 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -245,7 +245,7 @@ EVP_hexdigest(EVPobject *self, PyObject *unused) EVP_MD_CTX_free(temp_ctx); - return _Py_strhex((const char *)digest, digest_size); + return _Py_strhex((const char *)digest, (Py_ssize_t)digest_size); } PyDoc_STRVAR(EVP_update__doc__, diff --git a/Modules/_io/winconsoleio.c b/Modules/_io/winconsoleio.c index f084066..13342ec 100644 --- a/Modules/_io/winconsoleio.c +++ b/Modules/_io/winconsoleio.c @@ -1170,6 +1170,6 @@ PyTypeObject PyWindowsConsoleIO_Type = { 0, /* tp_finalize */ }; -PyAPI_DATA(PyObject *) _PyWindowsConsoleIO_Type = (PyObject*)&PyWindowsConsoleIO_Type; +PyObject * _PyWindowsConsoleIO_Type = (PyObject*)&PyWindowsConsoleIO_Type; #endif /* MS_WINDOWS */ diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index c5d9a17..48bd5dc 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -488,8 +488,8 @@ PyOS_AfterFork(void) #ifdef MS_WINDOWS /* defined in fileutils.c */ -PyAPI_FUNC(void) _Py_time_t_to_FILE_TIME(time_t, int, FILETIME *); -PyAPI_FUNC(void) _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *, +void _Py_time_t_to_FILE_TIME(time_t, int, FILETIME *); +void _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *, ULONG, struct _Py_stat_struct *); #endif |