summaryrefslogtreecommitdiffstats
path: root/Python/pystrhex.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-12 19:06:42 (GMT)
committerGitHub <noreply@github.com>2018-09-12 19:06:42 (GMT)
commite5024517811ee990b770fca0ba7058742d00e032 (patch)
tree6da191463cc8ff17b6c4ec4e4479015e851d5244 /Python/pystrhex.c
parent019f0a0cb85ebc234356415f3638b9bd77528e55 (diff)
downloadcpython-e5024517811ee990b770fca0ba7058742d00e032.zip
cpython-e5024517811ee990b770fca0ba7058742d00e032.tar.gz
cpython-e5024517811ee990b770fca0ba7058742d00e032.tar.bz2
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
Diffstat (limited to 'Python/pystrhex.c')
-rw-r--r--Python/pystrhex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/pystrhex.c b/Python/pystrhex.c
index 6dbf32d..028f187 100644
--- a/Python/pystrhex.c
+++ b/Python/pystrhex.c
@@ -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);
}