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/longobject.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/longobject.h')
-rw-r--r-- | Include/longobject.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Include/longobject.h b/Include/longobject.h index afb8af1..46105ae 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -43,26 +43,26 @@ extern DL_IMPORT(PyTypeObject) PyLong_Type; #define PyLong_Check(op) ((op)->ob_type == &PyLong_Type) -extern PyObject *PyLong_FromLong Py_PROTO((long)); -extern PyObject *PyLong_FromUnsignedLong Py_PROTO((unsigned long)); -extern PyObject *PyLong_FromDouble Py_PROTO((double)); -extern long PyLong_AsLong Py_PROTO((PyObject *)); -extern unsigned long PyLong_AsUnsignedLong Py_PROTO((PyObject *)); -extern double PyLong_AsDouble Py_PROTO((PyObject *)); -extern PyObject *PyLong_FromVoidPtr Py_PROTO((void *)); -extern void *PyLong_AsVoidPtr Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyLong_FromLong Py_PROTO((long)); +extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLong Py_PROTO((unsigned long)); +extern DL_IMPORT(PyObject *) PyLong_FromDouble Py_PROTO((double)); +extern DL_IMPORT(long) PyLong_AsLong Py_PROTO((PyObject *)); +extern DL_IMPORT(unsigned long) PyLong_AsUnsignedLong Py_PROTO((PyObject *)); +extern DL_IMPORT(double) PyLong_AsDouble Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyLong_FromVoidPtr Py_PROTO((void *)); +extern DL_IMPORT(void *) PyLong_AsVoidPtr Py_PROTO((PyObject *)); #ifdef HAVE_LONG_LONG #ifndef LONG_LONG #define LONG_LONG long long #endif -extern PyObject *PyLong_FromLongLong Py_PROTO((LONG_LONG)); -extern PyObject *PyLong_FromUnsignedLongLong Py_PROTO((unsigned LONG_LONG)); -extern LONG_LONG PyLong_AsLongLong Py_PROTO((PyObject *)); -extern unsigned LONG_LONG PyLong_AsUnsignedLongLong Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyLong_FromLongLong Py_PROTO((LONG_LONG)); +extern DL_IMPORT(PyObject *) PyLong_FromUnsignedLongLong Py_PROTO((unsigned LONG_LONG)); +extern DL_IMPORT(LONG_LONG) PyLong_AsLongLong Py_PROTO((PyObject *)); +extern DL_IMPORT(unsigned LONG_LONG) PyLong_AsUnsignedLongLong Py_PROTO((PyObject *)); #endif /* HAVE_LONG_LONG */ -PyObject *PyLong_FromString Py_PROTO((char *, char **, int)); +DL_IMPORT(PyObject *) PyLong_FromString Py_PROTO((char *, char **, int)); #ifdef __cplusplus } |