mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08: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:
@@ -78,6 +78,9 @@ DL_IMPORT(void) Py_Exit(int);
|
||||
|
||||
DL_IMPORT(int) Py_FdIsInteractive(FILE *, char *);
|
||||
|
||||
/* Bootstrap */
|
||||
PyAPI_FUNC(int) Py_Main(int argc, char **argv);
|
||||
|
||||
/* In getpath.c */
|
||||
PyAPI_FUNC(char *) Py_GetProgramFullPath(void);
|
||||
PyAPI_FUNC(char *) Py_GetPrefix(void);
|
||||
|
||||
@@ -703,7 +703,7 @@ static PyMethodDef _codecs_functions[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
init_codecs(void)
|
||||
{
|
||||
Py_InitModule("_codecs", _codecs_functions);
|
||||
|
||||
@@ -445,7 +445,7 @@ static PyMethodDef PyCurses_methods[] = {
|
||||
|
||||
/* Initialization function for the module */
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
init_curses_panel(void)
|
||||
{
|
||||
PyObject *m, *d, *v;
|
||||
|
||||
@@ -2474,7 +2474,7 @@ static PyMethodDef PyCurses_methods[] = {
|
||||
|
||||
/* Initialization function for the module */
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
init_curses(void)
|
||||
{
|
||||
PyObject *m, *d, *v, *c_api_object;
|
||||
|
||||
@@ -649,7 +649,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
init_locale(void)
|
||||
{
|
||||
PyObject *m, *d, *x;
|
||||
|
||||
@@ -473,7 +473,7 @@ PyDoc_STRVAR(module_doc,
|
||||
"Implementation module for SSL socket operations. See the socket module\n\
|
||||
for documentation.");
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
init_ssl(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -109,7 +109,7 @@ weakref_functions[] = {
|
||||
};
|
||||
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
init_weakref(void)
|
||||
{
|
||||
PyObject *m;
|
||||
|
||||
@@ -1908,7 +1908,7 @@ static PyMethodDef a_methods[] = {
|
||||
};
|
||||
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initarray(void)
|
||||
{
|
||||
PyObject *m;
|
||||
|
||||
@@ -1369,7 +1369,7 @@ static PyMethodDef audioop_methods[] = {
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initaudioop(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -1313,7 +1313,7 @@ static struct PyMethodDef binascii_module_methods[] = {
|
||||
/* Initialization function for the module (*must* be called initbinascii) */
|
||||
PyDoc_STRVAR(doc_binascii, "Conversion between binary data and ASCII");
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initbinascii(void)
|
||||
{
|
||||
PyObject *m, *d, *x;
|
||||
|
||||
@@ -4789,10 +4789,10 @@ init_stuff(PyObject *module_dict)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef DL_EXPORT /* declarations for DLL import/export */
|
||||
#define DL_EXPORT(RTYPE) RTYPE
|
||||
#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
|
||||
#define PyMODINIT_FUNC void
|
||||
#endif
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initcPickle(void)
|
||||
{
|
||||
PyObject *m, *d, *di, *v, *k;
|
||||
|
||||
@@ -701,10 +701,10 @@ static struct PycStringIO_CAPI CAPI = {
|
||||
&Otype,
|
||||
};
|
||||
|
||||
#ifndef DL_EXPORT /* declarations for DLL import/export */
|
||||
#define DL_EXPORT(RTYPE) RTYPE
|
||||
#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
|
||||
#define PyMODINIT_FUNC void
|
||||
#endif
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initcStringIO(void) {
|
||||
PyObject *m, *d, *v;
|
||||
|
||||
|
||||
@@ -391,7 +391,7 @@ static PyMethodDef cmath_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initcmath(void)
|
||||
{
|
||||
PyObject *m;
|
||||
|
||||
@@ -37,7 +37,7 @@ static PyMethodDef crypt_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initcrypt(void)
|
||||
{
|
||||
Py_InitModule("crypt", crypt_methods);
|
||||
|
||||
@@ -339,7 +339,7 @@ static PyMethodDef dbmmodule_methods[] = {
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initdbm(void) {
|
||||
PyObject *m, *d, *s;
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ insint(PyObject *d, char *name, int value)
|
||||
Py_XDECREF(v);
|
||||
}
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initdl(void)
|
||||
{
|
||||
PyObject *m, *d, *x;
|
||||
|
||||
@@ -57,7 +57,7 @@ Symbols that are not relevant to the underlying system are not defined.\n\
|
||||
To map error codes to error messages, use the function os.strerror(),\n\
|
||||
e.g. os.strerror(2) could return 'No such file or directory'.");
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initerrno(void)
|
||||
{
|
||||
PyObject *m, *d, *de;
|
||||
|
||||
@@ -462,7 +462,7 @@ all_ins(PyObject* d)
|
||||
return 0;
|
||||
}
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initfcntl(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -2126,7 +2126,7 @@ static PyMethodDef forms_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
DL_EXPORT(void)
|
||||
PyMODINIT_FUNC
|
||||
initfl(void)
|
||||
{
|
||||
Py_InitModule("fl", forms_methods);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user