mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-107211: No longer export internal functions (4) (#107217)
No longer export these 2 internal C API functions: * _PyEval_SignalAsyncExc() * _PyEval_SignalReceived() Add also comments explaining why some internal functions have to be exported, and update existing comments.
This commit is contained in:
parent
0d0520af83
commit
c5b13d6f80
13 changed files with 29 additions and 15 deletions
|
|
@ -262,7 +262,6 @@ extern int _PyStaticCode_Init(PyCodeObject *co);
|
|||
|
||||
#ifdef Py_STATS
|
||||
|
||||
|
||||
#define STAT_INC(opname, name) do { if (_py_stats) _py_stats->opcode_stats[opname].specialization.name++; } while (0)
|
||||
#define STAT_DEC(opname, name) do { if (_py_stats) _py_stats->opcode_stats[opname].specialization.name--; } while (0)
|
||||
#define OPCODE_EXE_INC(opname) do { if (_py_stats) _py_stats->opcode_stats[opname].execution_count++; } while (0)
|
||||
|
|
@ -274,7 +273,7 @@ extern int _PyStaticCode_Init(PyCodeObject *co);
|
|||
#define EVAL_CALL_STAT_INC_IF_FUNCTION(name, callable) \
|
||||
do { if (_py_stats && PyFunction_Check(callable)) _py_stats->call_stats.eval_calls[name]++; } while (0)
|
||||
|
||||
// Export for stdlib '_opcode' shared extension
|
||||
// Export for '_opcode' shared extension
|
||||
PyAPI_FUNC(PyObject*) _Py_GetSpecializationStats(void);
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue