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/ceval.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/ceval.h')
-rw-r--r-- | Include/ceval.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/Include/ceval.h b/Include/ceval.h index ae4d858..63204b2 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -7,46 +7,46 @@ extern "C" { /* Interface to random parts in ceval.c */ -DL_IMPORT(PyObject *) PyEval_CallObjectWithKeywords - (PyObject *, PyObject *, PyObject *); +PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( + PyObject *, PyObject *, PyObject *); /* DLL-level Backwards compatibility: */ #undef PyEval_CallObject -DL_IMPORT(PyObject *) PyEval_CallObject(PyObject *, PyObject *); +PyAPI_FUNC(PyObject *) PyEval_CallObject(PyObject *, PyObject *); /* Inline this */ #define PyEval_CallObject(func,arg) \ PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL) -DL_IMPORT(PyObject *) PyEval_CallFunction(PyObject *obj, char *format, ...); -DL_IMPORT(PyObject *) PyEval_CallMethod(PyObject *obj, +PyAPI_FUNC(PyObject *) PyEval_CallFunction(PyObject *obj, char *format, ...); +PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj, char *methodname, char *format, ...); -DL_IMPORT(void) PyEval_SetProfile(Py_tracefunc, PyObject *); -DL_IMPORT(void) PyEval_SetTrace(Py_tracefunc, PyObject *); +PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); +PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *); -DL_IMPORT(PyObject *) PyEval_GetBuiltins(void); -DL_IMPORT(PyObject *) PyEval_GetGlobals(void); -DL_IMPORT(PyObject *) PyEval_GetLocals(void); -DL_IMPORT(PyObject *) PyEval_GetOwner(void); -DL_IMPORT(PyObject *) PyEval_GetFrame(void); -DL_IMPORT(int) PyEval_GetRestricted(void); +PyAPI_FUNC(PyObject *) PyEval_GetBuiltins(void); +PyAPI_FUNC(PyObject *) PyEval_GetGlobals(void); +PyAPI_FUNC(PyObject *) PyEval_GetLocals(void); +PyAPI_FUNC(PyObject *) PyEval_GetOwner(void); +PyAPI_FUNC(PyObject *) PyEval_GetFrame(void); +PyAPI_FUNC(int) PyEval_GetRestricted(void); /* Look at the current frame's (if any) code's co_flags, and turn on the corresponding compiler flags in cf->cf_flags. Return 1 if any flag was set, else return 0. */ -DL_IMPORT(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf); +PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf); -DL_IMPORT(int) Py_FlushLine(void); +PyAPI_FUNC(int) Py_FlushLine(void); -DL_IMPORT(int) Py_AddPendingCall(int (*func)(void *), void *arg); -DL_IMPORT(int) Py_MakePendingCalls(void); +PyAPI_FUNC(int) Py_AddPendingCall(int (*func)(void *), void *arg); +PyAPI_FUNC(int) Py_MakePendingCalls(void); -DL_IMPORT(void) Py_SetRecursionLimit(int); -DL_IMPORT(int) Py_GetRecursionLimit(void); +PyAPI_FUNC(void) Py_SetRecursionLimit(int); +PyAPI_FUNC(int) Py_GetRecursionLimit(void); -DL_IMPORT(char *) PyEval_GetFuncName(PyObject *); -DL_IMPORT(char *) PyEval_GetFuncDesc(PyObject *); +PyAPI_FUNC(char *) PyEval_GetFuncName(PyObject *); +PyAPI_FUNC(char *) PyEval_GetFuncDesc(PyObject *); /* Interface for threads. @@ -93,17 +93,17 @@ DL_IMPORT(char *) PyEval_GetFuncDesc(PyObject *); mechanism! */ -extern DL_IMPORT(PyThreadState *) PyEval_SaveThread(void); -extern DL_IMPORT(void) PyEval_RestoreThread(PyThreadState *); +PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void); +PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); #ifdef WITH_THREAD -extern DL_IMPORT(void) PyEval_InitThreads(void); -extern DL_IMPORT(void) PyEval_AcquireLock(void); -extern DL_IMPORT(void) PyEval_ReleaseLock(void); -extern DL_IMPORT(void) PyEval_AcquireThread(PyThreadState *tstate); -extern DL_IMPORT(void) PyEval_ReleaseThread(PyThreadState *tstate); -extern DL_IMPORT(void) PyEval_ReInitThreads(void); +PyAPI_FUNC(void) PyEval_InitThreads(void); +PyAPI_FUNC(void) PyEval_AcquireLock(void); +PyAPI_FUNC(void) PyEval_ReleaseLock(void); +PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); +PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate); +PyAPI_FUNC(void) PyEval_ReInitThreads(void); #define Py_BEGIN_ALLOW_THREADS { \ PyThreadState *_save; \ @@ -122,7 +122,7 @@ extern DL_IMPORT(void) PyEval_ReInitThreads(void); #endif /* !WITH_THREAD */ -extern DL_IMPORT(int) _PyEval_SliceIndex(PyObject *, int *); +PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, int *); #ifdef __cplusplus |