mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
This commit is contained in:
parent
019f0a0cb8
commit
e502451781
13 changed files with 33 additions and 31 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
#include "pystrhex.h"
|
||||
|
||||
static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
|
||||
int return_bytes)
|
||||
{
|
||||
|
@ -48,14 +50,14 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
|
|||
return retval;
|
||||
}
|
||||
|
||||
PyAPI_FUNC(PyObject *) _Py_strhex(const char* argbuf, const Py_ssize_t arglen)
|
||||
PyObject * _Py_strhex(const char* argbuf, const Py_ssize_t arglen)
|
||||
{
|
||||
return _Py_strhex_impl(argbuf, arglen, 0);
|
||||
}
|
||||
|
||||
/* Same as above but returns a bytes() instead of str() to avoid the
|
||||
* need to decode the str() when bytes are needed. */
|
||||
PyAPI_FUNC(PyObject *) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen)
|
||||
PyObject * _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen)
|
||||
{
|
||||
return _Py_strhex_impl(argbuf, arglen, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue