mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
make the type a parameter of the DL_IMPORT macro, for Borland C
This commit is contained in:
parent
0fbec64c56
commit
051ab123b4
22 changed files with 67 additions and 63 deletions
|
@ -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)
|
||||
|
||||
|
@ -353,7 +353,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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue