mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
DL_IMPORT macro was called in a funny way (and MW barfed on it)
This commit is contained in:
parent
d39f5f6453
commit
5dbc7231a0
@ -237,7 +237,7 @@ typedef struct _typeobject {
|
||||
#endif
|
||||
} PyTypeObject;
|
||||
|
||||
extern DL_IMPORT(PyTypeObject) PyType_Type; /* The type of type objects */
|
||||
extern DL_IMPORT PyTypeObject PyType_Type; /* The type of type objects */
|
||||
|
||||
#define PyType_Check(op) ((op)->ob_type == &PyType_Type)
|
||||
|
||||
@ -354,7 +354,7 @@ where NULL (nil) is not suitable (since NULL often means 'error').
|
||||
Don't forget to apply Py_INCREF() when returning this value!!!
|
||||
*/
|
||||
|
||||
extern DL_IMPORT(PyObject) _Py_NoneStruct; /* Don't use this directly */
|
||||
extern DL_IMPORT PyObject _Py_NoneStruct; /* Don't use this directly */
|
||||
|
||||
#define Py_None (&_Py_NoneStruct)
|
||||
|
||||
|
@ -49,7 +49,7 @@ typedef struct {
|
||||
PyObject *ob_item[1];
|
||||
} PyTupleObject;
|
||||
|
||||
extern DL_IMPORT(PyTypeObject) PyTuple_Type;
|
||||
extern DL_IMPORT PyTypeObject PyTuple_Type;
|
||||
|
||||
#define PyTuple_Check(op) ((op)->ob_type == &PyTuple_Type)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user