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/pystate.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/pystate.h')
-rw-r--r-- | Include/pystate.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 712e9dc..913dc7a 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -74,25 +74,25 @@ typedef struct _ts { } PyThreadState; -DL_IMPORT(PyInterpreterState *) PyInterpreterState_New(void); -DL_IMPORT(void) PyInterpreterState_Clear(PyInterpreterState *); -DL_IMPORT(void) PyInterpreterState_Delete(PyInterpreterState *); +PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_New(void); +PyAPI_FUNC(void) PyInterpreterState_Clear(PyInterpreterState *); +PyAPI_FUNC(void) PyInterpreterState_Delete(PyInterpreterState *); -DL_IMPORT(PyThreadState *) PyThreadState_New(PyInterpreterState *); -DL_IMPORT(void) PyThreadState_Clear(PyThreadState *); -DL_IMPORT(void) PyThreadState_Delete(PyThreadState *); +PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *); +PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *); +PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *); #ifdef WITH_THREAD -DL_IMPORT(void) PyThreadState_DeleteCurrent(void); +PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void); #endif -DL_IMPORT(PyThreadState *) PyThreadState_Get(void); -DL_IMPORT(PyThreadState *) PyThreadState_Swap(PyThreadState *); -DL_IMPORT(PyObject *) PyThreadState_GetDict(void); +PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void); +PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *); +PyAPI_FUNC(PyObject *) PyThreadState_GetDict(void); /* Variable and macro for in-line access to current thread state */ -extern DL_IMPORT(PyThreadState *) _PyThreadState_Current; +PyAPI_DATA(PyThreadState *) _PyThreadState_Current; #ifdef Py_DEBUG #define PyThreadState_GET() PyThreadState_Get() @@ -102,10 +102,10 @@ extern DL_IMPORT(PyThreadState *) _PyThreadState_Current; /* Routines for advanced debuggers, requested by David Beazley. Don't use unless you know what you are doing! */ -DL_IMPORT(PyInterpreterState *) PyInterpreterState_Head(void); -DL_IMPORT(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *); -DL_IMPORT(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *); -DL_IMPORT(PyThreadState *) PyThreadState_Next(PyThreadState *); +PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Head(void); +PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *); +PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *); +PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *); #ifdef __cplusplus } |