Visitar URL original
gh-103533: Use pep669 APIs for cprofile by gaogaotiantian · Pull Request #103534 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make global check happy
  • Loading branch information
gaogaotiantian committed Apr 20, 2023
commit 20f46637937dd35d1abfcf744cd442e0fe49fb62
6 changes: 2 additions & 4 deletions Modules/_lsprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,12 +672,10 @@ PyObject* creturn_callback(ProfilerObject* self, PyObject *const *args, Py_ssize
Py_RETURN_NONE;
}

typedef struct {
static const struct {
int event;
const char* callback_method;
} CallbackTableEntry;

static const CallbackTableEntry callback_table[] = {
} callback_table[] = {
{PY_MONITORING_EVENT_PY_START, "_pystart_callback"},
{PY_MONITORING_EVENT_PY_RESUME, "_pystart_callback"},
{PY_MONITORING_EVENT_PY_RETURN, "_pyreturn_callback"},
Expand Down
1 change: 1 addition & 0 deletions Tools/c-analyzer/cpython/ignored.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ Modules/_io/_iomodule.c - static_types -
Modules/_io/textio.c - encodefuncs -
Modules/_io/winconsoleio.c - _PyWindowsConsoleIO_Type -
Modules/_localemodule.c - langinfo_constants -
Modules/_lsprof.c - callback_table -
Modules/_pickle.c - READ_WHOLE_LINE -
Modules/_sqlite/module.c - error_codes -
Modules/_sre/sre.c pattern_repr flag_names -
Expand Down