mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
This commit is contained in:
parent
44121a6bc9
commit
91a681debf
51 changed files with 661 additions and 665 deletions
|
@ -18,9 +18,9 @@ struct _PyWeakReference {
|
|||
PyWeakReference *wr_next;
|
||||
};
|
||||
|
||||
extern DL_IMPORT(PyTypeObject) _PyWeakref_RefType;
|
||||
extern DL_IMPORT(PyTypeObject) _PyWeakref_ProxyType;
|
||||
extern DL_IMPORT(PyTypeObject) _PyWeakref_CallableProxyType;
|
||||
PyAPI_DATA(PyTypeObject) _PyWeakref_RefType;
|
||||
PyAPI_DATA(PyTypeObject) _PyWeakref_ProxyType;
|
||||
PyAPI_DATA(PyTypeObject) _PyWeakref_CallableProxyType;
|
||||
|
||||
#define PyWeakref_CheckRef(op) \
|
||||
((op)->ob_type == &_PyWeakref_RefType)
|
||||
|
@ -31,13 +31,13 @@ extern DL_IMPORT(PyTypeObject) _PyWeakref_CallableProxyType;
|
|||
(PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
|
||||
|
||||
|
||||
extern DL_IMPORT(PyObject *) PyWeakref_NewRef(PyObject *ob,
|
||||
PyAPI_FUNC(PyObject *) PyWeakref_NewRef(PyObject *ob,
|
||||
PyObject *callback);
|
||||
extern DL_IMPORT(PyObject *) PyWeakref_NewProxy(PyObject *ob,
|
||||
PyAPI_FUNC(PyObject *) PyWeakref_NewProxy(PyObject *ob,
|
||||
PyObject *callback);
|
||||
extern DL_IMPORT(PyObject *) PyWeakref_GetObject(PyObject *ref);
|
||||
PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref);
|
||||
|
||||
extern DL_IMPORT(long) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
|
||||
PyAPI_FUNC(long) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
|
||||
|
||||
#define PyWeakref_GET_OBJECT(ref) (((PyWeakReference *)(ref))->wr_object)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue