[Bug #528914] PyTraceBack_Store/Fetch were deleted in 1997, but their
prototypes remain. Noted by Yakov Markovitch. Bugfix candidate.
This commit is contained in:
parent
4e732dc66a
commit
913b9078cf
|
@ -10,11 +10,9 @@ extern "C" {
|
||||||
struct _frame;
|
struct _frame;
|
||||||
|
|
||||||
DL_IMPORT(int) PyTraceBack_Here(struct _frame *);
|
DL_IMPORT(int) PyTraceBack_Here(struct _frame *);
|
||||||
DL_IMPORT(PyObject *) PyTraceBack_Fetch(void);
|
|
||||||
DL_IMPORT(int) PyTraceBack_Store(PyObject *);
|
|
||||||
DL_IMPORT(int) PyTraceBack_Print(PyObject *, PyObject *);
|
DL_IMPORT(int) PyTraceBack_Print(PyObject *, PyObject *);
|
||||||
|
|
||||||
/* Reveale traceback type so we can typecheck traceback objects */
|
/* Reveal traceback type so we can typecheck traceback objects */
|
||||||
extern DL_IMPORT(PyTypeObject) PyTraceBack_Type;
|
extern DL_IMPORT(PyTypeObject) PyTraceBack_Type;
|
||||||
#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
|
#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue