Give the functions for creating various objects unique names so they are easily recognized in macOS's non-fully-symolicated crash reports

This commit is contained in:
Kovid Goyal
2024-01-21 12:06:27 +05:30
parent e5b27d066c
commit b560fe34c9
11 changed files with 25 additions and 25 deletions

View File

@@ -1470,7 +1470,7 @@ parse_worker(void *p, ParseData *pd, bool flush) { run_worker(p, pd, flush); }
#ifndef DUMP_COMMANDS
static PyObject*
new(PyTypeObject *type UNUSED, PyObject *args, PyObject UNUSED *kwds) {
new_vtparser_object(PyTypeObject *type UNUSED, PyObject *args, PyObject UNUSED *kwds) {
id_type window_id=0;
if (!PyArg_ParseTuple(args, "|K", &window_id)) return NULL;
return (PyObject*) alloc_vt_parser(window_id);
@@ -1525,7 +1525,7 @@ PyTypeObject Parser_Type = {
.tp_doc = "VT Escape code parser",
.tp_methods = methods,
.tp_getset = getsetters,
.tp_new = new,
.tp_new = new_vtparser_object,
};
Parser*