diff options
| author | Victor Stinner <vstinner@python.org> | 2022-02-24 17:51:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-24 17:51:59 +0100 |
| commit | 042f31da552c19054acd3ef7bb6cfd857bce172b (patch) | |
| tree | d1aa8f20f873c89adebbac7072d80dceb19d32c4 /Include/cpython/traceback.h | |
| parent | ec091bd47e2f968b0d1631b9a8104283a7beeb1b (diff) | |
| download | cpython-git-042f31da552c19054acd3ef7bb6cfd857bce172b.tar.gz | |
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".
Diffstat (limited to 'Include/cpython/traceback.h')
| -rw-r--r-- | Include/cpython/traceback.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Include/cpython/traceback.h b/Include/cpython/traceback.h index d0dde335cf..a4e087b2b4 100644 --- a/Include/cpython/traceback.h +++ b/Include/cpython/traceback.h @@ -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); |
