mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Add DL_IMPORT(returntype) for all officially exported functions.
This commit is contained in:
parent
b241b67b89
commit
43466ec7b0
44 changed files with 401 additions and 398 deletions
|
@ -39,13 +39,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
struct _frame;
|
||||
|
||||
int PyTraceBack_Here Py_PROTO((struct _frame *));
|
||||
PyObject *PyTraceBack_Fetch Py_PROTO((void));
|
||||
int PyTraceBack_Store Py_PROTO((PyObject *));
|
||||
int PyTraceBack_Print Py_PROTO((PyObject *, PyObject *));
|
||||
DL_IMPORT(int) PyTraceBack_Here Py_PROTO((struct _frame *));
|
||||
DL_IMPORT(PyObject *) PyTraceBack_Fetch Py_PROTO((void));
|
||||
DL_IMPORT(int) PyTraceBack_Store Py_PROTO((PyObject *));
|
||||
DL_IMPORT(int) PyTraceBack_Print Py_PROTO((PyObject *, PyObject *));
|
||||
|
||||
/* Reveale traceback type so we can typecheck traceback objects */
|
||||
extern PyTypeObject PyTraceBack_Type;
|
||||
extern DL_IMPORT(PyTypeObject) PyTraceBack_Type;
|
||||
#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue