diff options
author | Guido van Rossum <guido@python.org> | 1998-12-04 18:48:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-04 18:48:25 (GMT) |
commit | 43466ec7b07de6bcad016bec60839cd6079c5a9c (patch) | |
tree | ec3bf3e1dfbf9535fa56e153e200f6491f34a6b0 /Include/methodobject.h | |
parent | b241b67b8954b0679377af00d668e3dc92f4c858 (diff) | |
download | cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.zip cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.gz cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.bz2 |
Add DL_IMPORT(returntype) for all officially exported functions.
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r-- | Include/methodobject.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h index 2b4819f..e614687 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -45,9 +45,9 @@ typedef PyObject *(*PyCFunction) Py_FPROTO((PyObject *, PyObject *)); typedef PyObject *(*PyCFunctionWithKeywords) Py_FPROTO((PyObject *, PyObject *, PyObject *)); -extern PyCFunction PyCFunction_GetFunction Py_PROTO((PyObject *)); -extern PyObject *PyCFunction_GetSelf Py_PROTO((PyObject *)); -extern int PyCFunction_GetFlags Py_PROTO((PyObject *)); +extern DL_IMPORT(PyCFunction) PyCFunction_GetFunction Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyCFunction_GetSelf Py_PROTO((PyObject *)); +extern DL_IMPORT(int) PyCFunction_GetFlags Py_PROTO((PyObject *)); /* Macros for direct access to these values. Type checks are *not* done, so use with care. */ @@ -66,10 +66,10 @@ struct PyMethodDef { }; typedef struct PyMethodDef PyMethodDef; -extern PyObject *Py_FindMethod +extern DL_IMPORT(PyObject *) Py_FindMethod Py_PROTO((PyMethodDef[], PyObject *, char *)); -extern PyObject *PyCFunction_New +extern DL_IMPORT(PyObject *) PyCFunction_New Py_PROTO((PyMethodDef *, PyObject *)); /* Flag passed to newmethodobject */ @@ -81,7 +81,7 @@ typedef struct PyMethodChain { struct PyMethodChain *link; /* NULL or base type */ } PyMethodChain; -extern PyObject *Py_FindMethodInChain +extern DL_IMPORT(PyObject *) Py_FindMethodInChain Py_PROTO((PyMethodChain *, PyObject *, char *)); typedef struct { |