mirror of
https://github.com/python/cpython.git
synced 2026-05-14 06:20:49 +00:00
bpo-45459: C API uses type names rather than structure names (GH-31528)
Thanks to the new pytypedefs.h, it becomes to use type names like PyObject rather like structure names like "struct _object".
This commit is contained in:
parent
ec091bd47e
commit
042f31da55
23 changed files with 69 additions and 75 deletions
|
|
@ -2,13 +2,15 @@
|
|||
# error "this header file must not be included directly"
|
||||
#endif
|
||||
|
||||
typedef struct _traceback {
|
||||
typedef struct _traceback PyTracebackObject;
|
||||
|
||||
struct _traceback {
|
||||
PyObject_HEAD
|
||||
struct _traceback *tb_next;
|
||||
PyTracebackObject *tb_next;
|
||||
PyFrameObject *tb_frame;
|
||||
int tb_lasti;
|
||||
int tb_lineno;
|
||||
} PyTracebackObject;
|
||||
};
|
||||
|
||||
PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int, int *, PyObject **);
|
||||
PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue