diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2002-08-12 07:21:58 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2002-08-12 07:21:58 (GMT) |
commit | 91a681debf9ffec155d0aff8a0bb5f965f592e16 (patch) | |
tree | 09f28782e3b0a24e64deddeafc9df24ac93855ca /Include/funcobject.h | |
parent | 44121a6bc9828c993932b87e442440dc4f260f3c (diff) | |
download | cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.zip cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.tar.gz cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.tar.bz2 |
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
Diffstat (limited to 'Include/funcobject.h')
-rw-r--r-- | Include/funcobject.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Include/funcobject.h b/Include/funcobject.h index 6b1e389..7fee800 100644 --- a/Include/funcobject.h +++ b/Include/funcobject.h @@ -19,17 +19,17 @@ typedef struct { PyObject *func_weakreflist; } PyFunctionObject; -extern DL_IMPORT(PyTypeObject) PyFunction_Type; +PyAPI_DATA(PyTypeObject) PyFunction_Type; #define PyFunction_Check(op) ((op)->ob_type == &PyFunction_Type) -extern DL_IMPORT(PyObject *) PyFunction_New(PyObject *, PyObject *); -extern DL_IMPORT(PyObject *) PyFunction_GetCode(PyObject *); -extern DL_IMPORT(PyObject *) PyFunction_GetGlobals(PyObject *); -extern DL_IMPORT(PyObject *) PyFunction_GetDefaults(PyObject *); -extern DL_IMPORT(int) PyFunction_SetDefaults(PyObject *, PyObject *); -extern DL_IMPORT(PyObject *) PyFunction_GetClosure(PyObject *); -extern DL_IMPORT(int) PyFunction_SetClosure(PyObject *, PyObject *); +PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *); +PyAPI_FUNC(PyObject *) PyFunction_GetCode(PyObject *); +PyAPI_FUNC(PyObject *) PyFunction_GetGlobals(PyObject *); +PyAPI_FUNC(PyObject *) PyFunction_GetDefaults(PyObject *); +PyAPI_FUNC(int) PyFunction_SetDefaults(PyObject *, PyObject *); +PyAPI_FUNC(PyObject *) PyFunction_GetClosure(PyObject *); +PyAPI_FUNC(int) PyFunction_SetClosure(PyObject *, PyObject *); /* Macros for direct access to these values. Type checks are *not* done, so use with care. */ @@ -43,11 +43,11 @@ extern DL_IMPORT(int) PyFunction_SetClosure(PyObject *, PyObject *); (((PyFunctionObject *)func) -> func_closure) /* The classmethod and staticmethod types lives here, too */ -extern DL_IMPORT(PyTypeObject) PyClassMethod_Type; -extern DL_IMPORT(PyTypeObject) PyStaticMethod_Type; +PyAPI_DATA(PyTypeObject) PyClassMethod_Type; +PyAPI_DATA(PyTypeObject) PyStaticMethod_Type; -extern DL_IMPORT(PyObject *) PyClassMethod_New(PyObject *); -extern DL_IMPORT(PyObject *) PyStaticMethod_New(PyObject *); +PyAPI_FUNC(PyObject *) PyClassMethod_New(PyObject *); +PyAPI_FUNC(PyObject *) PyStaticMethod_New(PyObject *); #ifdef __cplusplus } |