mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype
for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
This commit is contained in:
parent
d3c884d4ea
commit
fe51c6d66e
53 changed files with 71 additions and 61 deletions
|
@ -86,7 +86,7 @@ static Sigfunc sigfpe_handler;
|
|||
static void fpe_reset(Sigfunc *);
|
||||
|
||||
static PyObject *fpe_error;
|
||||
DL_EXPORT(void) initfpectl(void);
|
||||
PyMODINIT_FUNC initfpectl(void);
|
||||
static PyObject *turnon_sigfpe (PyObject *self,PyObject *args);
|
||||
static PyObject *turnoff_sigfpe (PyObject *self,PyObject *args);
|
||||
|
||||
|
@ -249,7 +249,7 @@ static void sigfpe_handler(int signo)
|
|||
}
|
||||
}
|
||||
|
||||
DL_EXPORT(void) initfpectl(void)
|
||||
PyMODINIT_FUNC initfpectl(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
m = Py_InitModule("fpectl", fpectl_methods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue