mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
gh-110079: Remove extern "C" { ...} in C code (#110080)
This commit is contained in:
parent
bfd94ab9e9
commit
8b626a47ba
18 changed files with 6 additions and 168 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue