mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
This commit is contained in:
parent
44121a6bc9
commit
91a681debf
51 changed files with 661 additions and 665 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue