summaryrefslogtreecommitdiffstats
path: root/Include/cpython/abstract.h
diff options
context:
space:
mode:
authorSkip Montanaro <skip.montanaro@gmail.com>2020-06-01 18:35:56 (GMT)
committerGitHub <noreply@github.com>2020-06-01 18:35:56 (GMT)
commitb4d5a5cca29426a282e8f1e64b2271fdd1f0a23e (patch)
treed5557646d6c9b88a44b1459000cdf30d219907c2 /Include/cpython/abstract.h
parentcbe129692293251e7fbcea9ff0d822824d90c140 (diff)
downloadcpython-b4d5a5cca29426a282e8f1e64b2271fdd1f0a23e.zip
cpython-b4d5a5cca29426a282e8f1e64b2271fdd1f0a23e.tar.gz
cpython-b4d5a5cca29426a282e8f1e64b2271fdd1f0a23e.tar.bz2
bpo-39583: Remove superfluous "extern C" bits from Include/cpython/*.h (GH-18413)
Diffstat (limited to 'Include/cpython/abstract.h')
-rw-r--r--Include/cpython/abstract.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/Include/cpython/abstract.h b/Include/cpython/abstract.h
index aa72f99..b5b6e48 100644
--- a/Include/cpython/abstract.h
+++ b/Include/cpython/abstract.h
@@ -2,10 +2,6 @@
# error "this header file must not be included directly"
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* === Object Protocol ================================================== */
#ifdef PY_SSIZE_T_CLEAN
@@ -380,8 +376,4 @@ PyAPI_FUNC(void) _Py_add_one_to_index_C(int nd, Py_ssize_t *index,
PyAPI_FUNC(int) _Py_convert_optional_to_ssize_t(PyObject *, void *);
/* Same as PyNumber_Index but can return an instance of a subclass of int. */
-PyAPI_FUNC(PyObject *) _PyNumber_Index(PyObject *o);
-
-#ifdef __cplusplus
-}
-#endif
+PyAPI_FUNC(PyObject *) _PyNumber_Index(PyObject *o); \ No newline at end of file