diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-12 10:33:44 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-09-12 10:40:45 -0700 |
commit | b21f3d99eeee630889b5d235cd3af646d620a6a9 (patch) | |
tree | a44be668e2beaee79da3ece92f1ac05e0ed4a7a6 /Objects | |
parent | f52237400b9960d434c5d0676a3479b8c1e8c869 (diff) | |
download | cpython-git-benjamin-pyapi.tar.gz |
closes bpo-34646: Remove PyAPI_* macros from declarations.benjamin-pyapi
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/methodobject.c | 2 | ||||
-rw-r--r-- | Objects/object.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index a7042ca39e..5ad283104f 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -18,7 +18,7 @@ static int numfree = 0; /* undefine macro trampoline to PyCFunction_NewEx */ #undef PyCFunction_New -PyAPI_FUNC(PyObject *) +PyObject * PyCFunction_New(PyMethodDef *ml, PyObject *self) { return PyCFunction_NewEx(ml, self, NULL); diff --git a/Objects/object.c b/Objects/object.c index 6498756c92..607f047d14 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -2180,7 +2180,7 @@ _PyTrash_thread_destroy_chain(void) /* For Py_LIMITED_API, we need an out-of-line version of _Py_Dealloc. Define this here, so we can undefine the macro. */ #undef _Py_Dealloc -PyAPI_FUNC(void) _Py_Dealloc(PyObject *); +void _Py_Dealloc(PyObject *); void _Py_Dealloc(PyObject *op) { |