mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Add DL_EXPORT() to all modules that could possibly be used
on BeOS or Windows.
This commit is contained in:
@@ -1522,7 +1522,7 @@ static PyMethodDef PyCurses_methods[] = {
|
||||
|
||||
/* Initialization function for the module */
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initcurses()
|
||||
{
|
||||
PyObject *m, *d, *v;
|
||||
|
||||
@@ -309,7 +309,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
init_locale()
|
||||
{
|
||||
PyObject *m,*d,*x;
|
||||
|
||||
@@ -2006,7 +2006,7 @@ ins_string(d, name, val)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
init_tkinter()
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -1457,7 +1457,7 @@ statichere PyTypeObject Arraytype = {
|
||||
arraytype_doc, /*tp_doc*/
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initarray()
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -1402,7 +1402,7 @@ static PyMethodDef audioop_methods[] = {
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initaudioop()
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -742,7 +742,7 @@ static struct PyMethodDef binascii_module_methods[] = {
|
||||
/* Initialization function for the module (*must* be called initbinascii) */
|
||||
static char doc_binascii[] = "Conversion between binary data and ASCII";
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initbinascii()
|
||||
{
|
||||
PyObject *m, *d, *x;
|
||||
|
||||
@@ -865,7 +865,7 @@ static PyMethodDef bsddbmodule_methods[] = {
|
||||
{0, 0},
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initbsddb() {
|
||||
PyObject *m, *d;
|
||||
|
||||
|
||||
@@ -589,7 +589,7 @@ static struct PycStringIO_CAPI CAPI = {
|
||||
&Otype,
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initcStringIO() {
|
||||
PyObject *m, *d, *v;
|
||||
|
||||
|
||||
@@ -301,7 +301,7 @@ static PyMethodDef cmath_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initcmath()
|
||||
{
|
||||
PyObject *m, *d, *v;
|
||||
|
||||
@@ -27,7 +27,7 @@ static PyMethodDef crypt_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initcrypt()
|
||||
{
|
||||
Py_InitModule("crypt", crypt_methods);
|
||||
|
||||
@@ -311,7 +311,7 @@ static PyMethodDef dbmmodule_methods[] = {
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initdbm() {
|
||||
PyObject *m, *d;
|
||||
|
||||
|
||||
@@ -94,7 +94,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'.";
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initerrno()
|
||||
{
|
||||
PyObject *m, *d, *de;
|
||||
|
||||
@@ -320,7 +320,7 @@ all_ins(d)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initfcntl()
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -2520,7 +2520,7 @@ static PyMethodDef forms_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initfl()
|
||||
{
|
||||
Py_InitModule("fl", forms_methods);
|
||||
|
||||
@@ -227,7 +227,7 @@ static void sigfpe_handler(int signo)
|
||||
}
|
||||
}
|
||||
|
||||
void initfpectl(void)
|
||||
DL_EXPORT(void) initfpectl(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
m = Py_InitModule("fpectl", fpectl_methods);
|
||||
|
||||
@@ -172,7 +172,7 @@ static double overflow(double b)
|
||||
return a;
|
||||
}
|
||||
|
||||
void initfpetest(void)
|
||||
DL_EXPORT(void) initfpetest(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
|
||||
@@ -514,7 +514,7 @@ static PyMethodDef dbmmodule_methods[] = {
|
||||
{ 0, 0 },
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initgdbm() {
|
||||
PyObject *m, *d;
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ static PyMethodDef grp_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initgrp()
|
||||
{
|
||||
Py_InitModule("grp", grp_methods);
|
||||
|
||||
@@ -758,7 +758,7 @@ static PyMethodDef imageop_methods[] = {
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initimageop()
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@@ -234,6 +234,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||
*) sed -e "
|
||||
1i$NL/* Generated automatically from $config by makesetup. */
|
||||
/MARKER 1/i$NL$EXTDECLS
|
||||
|
||||
/MARKER 2/i$NL$INITBITS
|
||||
|
||||
" $config >config.c
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user