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/pyerrors.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/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index da5f302..8a8111a 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -37,18 +37,18 @@ PERFORMANCE OF THIS SOFTWARE. /* Error handling definitions */ -void PyErr_SetNone Py_PROTO((PyObject *)); -void PyErr_SetObject Py_PROTO((PyObject *, PyObject *)); -void PyErr_SetString Py_PROTO((PyObject *, const char *)); -PyObject *PyErr_Occurred Py_PROTO((void)); -void PyErr_Clear Py_PROTO((void)); -void PyErr_Fetch Py_PROTO((PyObject **, PyObject **, PyObject **)); -void PyErr_Restore Py_PROTO((PyObject *, PyObject *, PyObject *)); +DL_IMPORT(void) PyErr_SetNone Py_PROTO((PyObject *)); +DL_IMPORT(void) PyErr_SetObject Py_PROTO((PyObject *, PyObject *)); +DL_IMPORT(void) PyErr_SetString Py_PROTO((PyObject *, const char *)); +DL_IMPORT(PyObject *) PyErr_Occurred Py_PROTO((void)); +DL_IMPORT(void) PyErr_Clear Py_PROTO((void)); +DL_IMPORT(void) PyErr_Fetch Py_PROTO((PyObject **, PyObject **, PyObject **)); +DL_IMPORT(void) PyErr_Restore Py_PROTO((PyObject *, PyObject *, PyObject *)); /* Error testing and normalization */ -int PyErr_GivenExceptionMatches Py_PROTO((PyObject *, PyObject *)); -int PyErr_ExceptionMatches Py_PROTO((PyObject *)); -void PyErr_NormalizeException Py_PROTO((PyObject**, PyObject**, PyObject**)); +DL_IMPORT(int) PyErr_GivenExceptionMatches Py_PROTO((PyObject *, PyObject *)); +DL_IMPORT(int) PyErr_ExceptionMatches Py_PROTO((PyObject *)); +DL_IMPORT(void) PyErr_NormalizeException Py_PROTO((PyObject**, PyObject**, PyObject**)); /* Predefined exceptions */ @@ -86,21 +86,21 @@ extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst; /* Convenience functions */ -extern int PyErr_BadArgument Py_PROTO((void)); -extern PyObject *PyErr_NoMemory Py_PROTO((void)); -extern PyObject *PyErr_SetFromErrno Py_PROTO((PyObject *)); -extern PyObject *PyErr_SetFromErrnoWithFilename Py_PROTO((PyObject *, char *)); -extern PyObject *PyErr_Format Py_PROTO((PyObject *, const char *, ...)); +extern DL_IMPORT(int) PyErr_BadArgument Py_PROTO((void)); +extern DL_IMPORT(PyObject *) PyErr_NoMemory Py_PROTO((void)); +extern DL_IMPORT(PyObject *) PyErr_SetFromErrno Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyErr_SetFromErrnoWithFilename Py_PROTO((PyObject *, char *)); +extern DL_IMPORT(PyObject *) PyErr_Format Py_PROTO((PyObject *, const char *, ...)); -extern void PyErr_BadInternalCall Py_PROTO((void)); +extern DL_IMPORT(void) PyErr_BadInternalCall Py_PROTO((void)); /* Function to create a new exception */ -PyObject *PyErr_NewException Py_PROTO((char *name, PyObject *base, +DL_IMPORT(PyObject *) PyErr_NewException Py_PROTO((char *name, PyObject *base, PyObject *dict)); /* In sigcheck.c or signalmodule.c */ -extern int PyErr_CheckSignals Py_PROTO((void)); -extern void PyErr_SetInterrupt Py_PROTO((void)); +extern DL_IMPORT(int) PyErr_CheckSignals Py_PROTO((void)); +extern DL_IMPORT(void) PyErr_SetInterrupt Py_PROTO((void)); #ifdef __cplusplus |