gh-110079: Remove extern "C" { ...} in C code (#110080)

This commit is contained in:
Victor Stinner 2023-09-29 10:56:49 +02:00 committed by GitHub
parent bfd94ab9e9
commit 8b626a47ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 6 additions and 168 deletions

View file

@ -2039,11 +2039,6 @@ sys_call_tracing_impl(PyObject *module, PyObject *func, PyObject *funcargs)
return _PyEval_CallTracing(func, funcargs);
}
#ifdef __cplusplus
extern "C" {
#endif
/*[clinic input]
sys._debugmallocstats
@ -2072,10 +2067,6 @@ sys__debugmallocstats_impl(PyObject *module)
extern PyObject *_Py_GetObjects(PyObject *, PyObject *);
#endif
#ifdef __cplusplus
}
#endif
/*[clinic input]
sys._clear_type_cache
@ -2297,11 +2288,6 @@ sys__getframemodulename_impl(PyObject *module, int depth)
return Py_NewRef(r);
}
#ifdef __cplusplus
extern "C" {
#endif
static PerfMapState perf_map_state;
PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void) {
@ -2370,10 +2356,6 @@ PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void) {
#endif
}
#ifdef __cplusplus
}
#endif
static PyMethodDef sys_methods[] = {
/* Might as well keep this in alphabetic order */