mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
Use appropriate macros not the deprecated DL_IMPORT/DL_EXPORT macros
This commit is contained in:
parent
59aba128a5
commit
21d896cfa1
4 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ PyAPI_DATA(PyObject *) PyExc_ZeroDivisionError;
|
||||||
PyAPI_DATA(PyObject *) PyExc_WindowsError;
|
PyAPI_DATA(PyObject *) PyExc_WindowsError;
|
||||||
#endif
|
#endif
|
||||||
#ifdef __VMS
|
#ifdef __VMS
|
||||||
extern DL_IMPORT(PyObject *) PyExc_VMSError;
|
PyAPI_DATA(PyObject *) PyExc_VMSError;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PyAPI_DATA(PyObject *) PyExc_MemoryErrorInst;
|
PyAPI_DATA(PyObject *) PyExc_MemoryErrorInst;
|
||||||
|
|
|
@ -65,7 +65,7 @@ PyAPI_FUNC(int) _PyString_Eq(PyObject *, PyObject*);
|
||||||
PyAPI_FUNC(PyObject *) PyString_Format(PyObject *, PyObject *);
|
PyAPI_FUNC(PyObject *) PyString_Format(PyObject *, PyObject *);
|
||||||
PyAPI_FUNC(PyObject *) _PyString_FormatLong(PyObject*, int, int,
|
PyAPI_FUNC(PyObject *) _PyString_FormatLong(PyObject*, int, int,
|
||||||
int, char**, int*);
|
int, char**, int*);
|
||||||
extern DL_IMPORT(PyObject *) PyString_DecodeEscape(const char *, int,
|
PyAPI_FUNC(PyObject *) PyString_DecodeEscape(const char *, int,
|
||||||
const char *, int,
|
const char *, int,
|
||||||
const char *);
|
const char *);
|
||||||
|
|
||||||
|
|
|
@ -2167,7 +2167,7 @@ interface, one shot (de)compression functions, and types for\n\
|
||||||
sequential (de)compression.\n\
|
sequential (de)compression.\n\
|
||||||
");
|
");
|
||||||
|
|
||||||
DL_EXPORT(void)
|
PyMODINIT_FUNC
|
||||||
initbz2(void)
|
initbz2(void)
|
||||||
{
|
{
|
||||||
PyObject *m;
|
PyObject *m;
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Pointers needed from outside (but not declared in a header file). */
|
/* Pointers needed from outside (but not declared in a header file). */
|
||||||
extern DL_IMPORT(int) (*PyOS_InputHook)(void);
|
PyAPI_FUNC(int) (*PyOS_InputHook)(void);
|
||||||
extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *,char *);
|
PyAPI_FUNC(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *,char *);
|
||||||
|
|
||||||
|
|
||||||
/* Exported function to send one line to readline's init file parser */
|
/* Exported function to send one line to readline's init file parser */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue