]> granicus.if.org Git - python/commitdiff
Add DL_EXPORT() to all modules that could possibly be used
authorGuido van Rossum <guido@python.org>
Fri, 4 Dec 1998 18:50:17 +0000 (18:50 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 4 Dec 1998 18:50:17 +0000 (18:50 +0000)
on BeOS or Windows.

47 files changed:
Modules/_cursesmodule.c
Modules/_localemodule.c
Modules/_tkinter.c
Modules/arraymodule.c
Modules/audioop.c
Modules/binascii.c
Modules/bsddbmodule.c
Modules/cStringIO.c
Modules/cmathmodule.c
Modules/cryptmodule.c
Modules/dbmmodule.c
Modules/errnomodule.c
Modules/fcntlmodule.c
Modules/flmodule.c
Modules/fpectlmodule.c
Modules/fpetestmodule.c
Modules/gdbmmodule.c
Modules/grpmodule.c
Modules/imageop.c
Modules/makesetup
Modules/mathmodule.c
Modules/md5module.c
Modules/mpzmodule.c
Modules/newmodule.c
Modules/operator.c
Modules/parsermodule.c
Modules/pcremodule.c
Modules/posixmodule.c
Modules/pwdmodule.c
Modules/readline.c
Modules/regexmodule.c
Modules/rgbimgmodule.c
Modules/rotormodule.c
Modules/selectmodule.c
Modules/signalmodule.c
Modules/socketmodule.c
Modules/soundex.c
Modules/stdwinmodule.c
Modules/stropmodule.c
Modules/structmodule.c
Modules/syslogmodule.c
Modules/termios.c
Modules/threadmodule.c
Modules/timemodule.c
Modules/timingmodule.c
Modules/xxmodule.c
Modules/zlibmodule.c

index b42a2bc1fbf45ddcc8c573216a0f19f68b5e76f6..b68fd7d4c641bc8f8300609cce170af4bc771cb7 100644 (file)
@@ -1522,7 +1522,7 @@ static PyMethodDef PyCurses_methods[] = {
 
 /* Initialization function for the module */
 
-void
+DL_EXPORT(void)
 initcurses()
 {
        PyObject *m, *d, *v;
index 2f7a42b7b373ccf41f4103b746b87ee676d3f058..3b8472954bb2961797ab07603ce91fcadabb7cd8 100644 (file)
@@ -309,7 +309,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
   {NULL, NULL}
 };
 
-void
+DL_EXPORT(void)
 init_locale()
 {
   PyObject *m,*d,*x;
index 86a4e589cb33335b8a998f5e63f6daf34c7eb15e..9d68c69f037ded3b5b09335953a7d2f46196eccd 100644 (file)
@@ -2006,7 +2006,7 @@ ins_string(d, name, val)
 }
 
 
-void
+DL_EXPORT(void)
 init_tkinter()
 {
        PyObject *m, *d;
index fc31b31e8c9c684504c4d652843c2677338c92c9..656f5a68af1bed999857dd6eca7e1074a21e5218 100644 (file)
@@ -1457,7 +1457,7 @@ statichere PyTypeObject Arraytype = {
        arraytype_doc,                  /*tp_doc*/
 };
 
-void
+DL_EXPORT(void)
 initarray()
 {
        PyObject *m, *d;
index e7edfec84e11be1c1e853835f7d81e5ce65db1a6..76fba98066b469d5d7796bc6e894e1fe1b50c4c8 100644 (file)
@@ -1402,7 +1402,7 @@ static PyMethodDef audioop_methods[] = {
        { 0,          0 }
 };
 
-void
+DL_EXPORT(void)
 initaudioop()
 {
        PyObject *m, *d;
index 26e4b6c755116a3b9eee42d49924f290449c24d0..73dc27a8944d30e95a2f85c33efd94157bd96136 100644 (file)
@@ -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;
index ca7fa5f0d6ca9fcbb5ccbc649bb29f90d9112f54..1bb40e6fd7e44c43b38373f1d65c8e9ca2563761 100644 (file)
@@ -865,7 +865,7 @@ static PyMethodDef bsddbmodule_methods[] = {
        {0,             0},
 };
 
-void
+DL_EXPORT(void)
 initbsddb() {
        PyObject *m, *d;
 
index 6828a11ac7bb8037d220fc01c81c9a25891d9d1d..19a04503f1f973283cad5d20b49115d9478528fd 100644 (file)
@@ -589,7 +589,7 @@ static struct PycStringIO_CAPI CAPI = {
   &Otype,
 };
 
-void
+DL_EXPORT(void)
 initcStringIO() {
   PyObject *m, *d, *v;
 
index 4e08722bccac54f83874f6376f5ca502f6038bdc..583a629a2c20f24f6079aa25b78d71dc433b882c 100644 (file)
@@ -301,7 +301,7 @@ static PyMethodDef cmath_methods[] = {
        {NULL,          NULL}           /* sentinel */
 };
 
-void
+DL_EXPORT(void)
 initcmath()
 {
        PyObject *m, *d, *v;
index 1498bb074573289199625156d9992d450fc0aae3..7cc03bed28ffa4ab730c0b4399c90959dd590bc8 100644 (file)
@@ -27,7 +27,7 @@ static PyMethodDef crypt_methods[] = {
        {NULL,          NULL}           /* sentinel */
 };
 
-void
+DL_EXPORT(void)
 initcrypt()
 {
        Py_InitModule("crypt", crypt_methods);
index ea628f196eb8dd3698fba476a1b04d8aacede71d..7a234a2cd4115b5e57c4166e5ddf44f0c8b08831 100644 (file)
@@ -311,7 +311,7 @@ static PyMethodDef dbmmodule_methods[] = {
        { 0, 0 },
 };
 
-void
+DL_EXPORT(void)
 initdbm() {
        PyObject *m, *d;
 
index 8120075ba3e41be7b488bf70c18c46d5d1afa8af..f18a6555ba0dc9e7899f982c98adc921ba5c4616 100644 (file)
@@ -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;
index 6e7c1c2d9c1840a257e77d9ffa945cee8e1bd4f0..59a4d4ae55e3f1ea4063aad0170a1d037ceb2c5c 100644 (file)
@@ -320,7 +320,7 @@ all_ins(d)
        return 0;
 }
 
-void
+DL_EXPORT(void)
 initfcntl()
 {
        PyObject *m, *d;
index 2e2dd5efd435e1fc97d9f7599d628959ee8e3ead..c921d4bca37f1f6a69fa70a8d540513fb6459053 100644 (file)
@@ -2520,7 +2520,7 @@ static PyMethodDef forms_methods[] = {
        {NULL,                  NULL}           /* sentinel */
 };
 
-void
+DL_EXPORT(void)
 initfl()
 {
        Py_InitModule("fl", forms_methods);
index e2a8022723580be34fdc889ac61f4b047603edf2..ca3a2c989a4c74ab831800dc000d608d13e74774 100644 (file)
@@ -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);
index 61dd3db734d25c9b9d6387cfd7c2df7b6afc3f38..c1e87cec5c1f1be1a6b5389eb4b7d370c475112b 100644 (file)
@@ -172,7 +172,7 @@ static double overflow(double b)
   return a;
 }
 
-void initfpetest(void)
+DL_EXPORT(void) initfpetest(void)
 {
     PyObject *m, *d;
 
index ae716ac4949e6de8b4c0fdfc3bd981ca02000483..0df7df24cf0e4ca9084e839d6efb7349b40090f9 100644 (file)
@@ -514,7 +514,7 @@ static PyMethodDef dbmmodule_methods[] = {
        { 0, 0 },
 };
 
-void
+DL_EXPORT(void)
 initgdbm() {
        PyObject *m, *d;
 
index 0199b6b033a448c5a51eb3eb2fcdd442f23071c3..c5a4043695eac1cb4e1e68b6898e09c9120c40e2 100644 (file)
@@ -125,7 +125,7 @@ static PyMethodDef grp_methods[] = {
        {NULL,          NULL}           /* sentinel */
 };
 
-void
+DL_EXPORT(void)
 initgrp()
 {
        Py_InitModule("grp", grp_methods);
index 7b82e040c81cec58b3037afc10a45dc655876dae..5572c9fd79c1f3fd40bbc0f57ebca922dd7d01f4 100644 (file)
@@ -758,7 +758,7 @@ static PyMethodDef imageop_methods[] = {
 };
 
 
-void
+DL_EXPORT(void)
 initimageop()
 {
        PyObject *m, *d;
index b29938cb31f367a4fef251d0792b0ef0841230af..8ce1e88b2b6241d5a22d3e2728f694a9fc6a9d96 100755 (executable)
@@ -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
index 174a231b8e6389cd695e121690a3a0421518fc02..7c11e6feb694e0c423ca1c29db7c24451728a28a 100644 (file)
@@ -233,7 +233,7 @@ static PyMethodDef math_methods[] = {
        {NULL,          NULL}           /* sentinel */
 };
 
-void
+DL_EXPORT(void)
 initmath()
 {
        PyObject *m, *d, *v;
index e82d3394643baecc0fda6f0d441e1abcd7f8f0e7..2508f52dff7a3244743a2697128f8a671e4efd01 100644 (file)
@@ -267,7 +267,7 @@ static PyMethodDef md5_functions[] = {
 
 /* Initialize this module. */
 
-void
+DL_EXPORT(void)
 initmd5()
 {
        PyObject *m, *d;
index 4299f454b71c97c80d231237e6328b2f0810e110..e1fd7bfa4b16b5ee9657894bd56f5f46c6841f6a 100644 (file)
@@ -1819,7 +1819,7 @@ void mp_free( ptr, size )
 
 /* Initialize this module. */
 
-void
+DL_EXPORT(void)
 initmpz()
 {
        PyObject *module;
index 5c92e0eda4fdc02bb535c524a776ee0db4f9b612..786ddc5f5996f8ed444f4a0806809d72f8007c05 100644 (file)
@@ -226,7 +226,7 @@ char new_doc[] =
 \n\
 You need to know a great deal about the interpreter to use this!";
 
-void
+DL_EXPORT(void)
 initnew()
 {
        Py_InitModule4("new", new_methods, new_doc, (PyObject *)NULL,
index 8b3c56be9002e822c3fa50ed376f43eeeb1fe369..d790d7cc907227208e77d0c38d45626a56ee4ebf 100644 (file)
@@ -255,7 +255,7 @@ spam2(delslice,__delslice__,
 
 /* Initialization function for the module (*must* be called initoperator) */
 
-void
+DL_EXPORT(void)
 initoperator()
 {
         /* Create the module and add the functions */
index cd8381ca50d5ad512ebe5c4271a7158fa984d681..d0ba9e99603f00d0ae47566a30d03a84d6a151b5 100644 (file)
@@ -2746,7 +2746,7 @@ static PyMethodDef parser_functions[] =  {
     };
 
 
-void
+DL_EXPORT(void)
 initparser()
  {
     PyObject* module;
index 9819fdde15f32068c4b29d2c71fdde691ad04056..fa986964887881d8f344f145266ed5d236c7c7b2 100644 (file)
@@ -636,7 +636,7 @@ insint(d, name, value)
 
 /* Initialization function for the module (*must* be called initpcre) */
 
-void
+DL_EXPORT(void)
 initpcre()
 {
        PyObject *m, *d;
index 876522b93ad0c097aa1ddc2c442401ee3ae624c6..f9f6284bd2b5886fb9817b1adfff2d7577104142 100644 (file)
@@ -2899,7 +2899,7 @@ all_ins(d)
 #endif
 #endif
 
-void
+DL_EXPORT(void)
 INITFUNC()
 {
        PyObject *m, *d, *v;
index 732e4dcbf1d91cf79818756b8b0754660c67c10f..00522b9972976795ac7f4c79d94d7ecb62fc0727 100644 (file)
@@ -164,7 +164,7 @@ static PyMethodDef pwd_methods[] = {
        {NULL,          NULL}           /* sentinel */
 };
 
-void
+DL_EXPORT(void)
 initpwd()
 {
        Py_InitModule4("pwd", pwd_methods, pwd__doc__,
index 915cc4a16712c6f9ff9b15de3429ff0a2a312656..08569f6caeebb065eff693d52c7e4de845c73d89 100644 (file)
@@ -304,7 +304,7 @@ call_readline(prompt)
 static char doc_module[] =
 "Importing this module enables command line editing using GNU readline.";
 
-void
+DL_EXPORT(void)
 initreadline()
 {
        PyObject *m;
index afc772264d5336323f3ddf80e93c7a492cd3cffb..1f64f61467da2e57c42070244b5613ac1754066c 100644 (file)
@@ -707,7 +707,7 @@ static struct PyMethodDef regex_global_methods[] = {
        {NULL,          NULL}                /* sentinel */
 };
 
-void
+DL_EXPORT(void)
 initregex()
 {
        PyObject *m, *d, *v;
index 94b055debda78f907ff9ab2492540efc3c32223f..cc5c6d5da9467d09bdd6e0b7dd937a759a0feda7 100644 (file)
@@ -788,7 +788,7 @@ rgbimg_methods[] = {
 };
 
 
-void
+DL_EXPORT(void)
 initrgbimg()
 {
        PyObject *m, *d;
index 5c7d5824cebc8a91ccd48fa140ba3da8a6c18b04..b3511d8e9ce15240abd8da646074cce23edf16f2 100644 (file)
@@ -655,7 +655,7 @@ rotor_methods[] = {
 };
 
 
-void
+DL_EXPORT(void)
 initrotor()
 {
        (void)Py_InitModule("rotor", rotor_methods);
index dfc765c498f9b799cf9d4307ecea41bd0d2ca52a..11f72f5aa27e4b5c0d5ae76626da4248c0c220bf 100644 (file)
@@ -378,7 +378,7 @@ static char module_doc[] =
 *** IMPORTANT NOTICE ***\n\
 On Windows, only sockets are supported; on Unix, all file descriptors.";
 
-void
+DL_EXPORT(void)
 initselect()
 {
        PyObject *m, *d;
index 8795463cefc530f772e1754bc1f840b550a48084..11b624a7044377aca3de14d570801617fe8ae0bd 100644 (file)
@@ -339,7 +339,7 @@ SIGINT, SIGTERM, etc. -- signal numbers\n\
 A signal handler function is called with two arguments:\n\
 the first is the signal number, the second is the interrupted stack frame.";
 
-void
+DL_EXPORT(void)
 initsignal()
 {
        PyObject *m, *d, *x;
index 9d672a64a6cccacf964c2a6b7ac7d4d259c99fcd..0564e17f2fcb619ec0e8578472cf640a68f9a3e3 100644 (file)
@@ -1887,7 +1887,7 @@ shutdown() -- shut down traffic in one or both directions\n\
 \n\
 (*) not available on all platforms!)";
 
-void
+DL_EXPORT(void)
 #if defined(MS_WINDOWS) || defined(PYOS_OS2) || defined(__BEOS__)
 init_socket()
 #else
index fe00ac6613fcd204261516360d4f7849b72ea6c8..3ef6824892afcb0a6c3b4e9282e764aa57239314 100644 (file)
@@ -166,7 +166,7 @@ static PyMethodDef SoundexMethods[] =
 
 /* Register the method table.
  */
-void
+DL_EXPORT(void)
 initsoundex()
 {
     (void) Py_InitModule4("soundex",
index a27204744304eeb1b90923168d0244b7e5de0d01..8b18f4920c2d537b86a718c8e0cfbe1ce0f8a4a4 100644 (file)
@@ -2611,7 +2611,7 @@ putbackstringlist(list, s, n)
 }
 #endif /* macintosh */
 
-void
+DL_EXPORT(void)
 initstdwin()
 {
        PyObject *m, *d;
index 240a056f6f345b7741eece3684727118a273ae85..9e9fa044f2200ff809362a0dfe7e604b29f78e6f 100644 (file)
@@ -1189,7 +1189,7 @@ strop_methods[] = {
 };
 
 
-void
+DL_EXPORT(void)
 initstrop()
 {
        PyObject *m, *d, *s;
index a20d5ff542e92c9d88809b6b8ac328f3eb997290..9994d20313605a2e6dd59d0fcfbb16338ad002e6 100644 (file)
@@ -1358,7 +1358,7 @@ static PyMethodDef struct_methods[] = {
 
 /* Module initialization */
 
-void
+DL_EXPORT(void)
 initstruct()
 {
        PyObject *m, *d;
index f55a77c5bf33baaa3370ae736e066c6ce7577de4..60889b1530ce93ac24fb0afd910d716f802ca9c3 100644 (file)
@@ -182,7 +182,7 @@ ins(d, s, x)
 
 /* Initialization function for the module */
 
-void
+DL_EXPORT(void)
 initsyslog()
 {
        PyObject *m, *d;
index e2ef5d0b7ab4c7e9849260e7ec0fec69ceab7a1b..f87cea73017b8a2ed86aee921ccca7702d0a7619 100644 (file)
@@ -299,7 +299,7 @@ static PyMethodDef termios_methods[] =
        {NULL, NULL}
 };
 
-void
+DL_EXPORT(void)
 PyInit_termios()
 {
        PyObject *m, *d;
index a1ba362ae94553b792f9f7c071918e76ba09e6d0..b08ff0bc1c0349c9774d31f6be51130d5026a078 100644 (file)
@@ -424,7 +424,7 @@ A lock is not owned by the thread that locked it; another thread may\n\
 unlock it.  A thread attempting to lock a lock that it has already locked\n\
 will block until another thread unlocks it.  Deadlocks may ensue.";
 
-void
+DL_EXPORT(void)
 initthread()
 {
        PyObject *m, *d;
index 0a0322d4028021d7b720dc7c572ee5db11cc2754..e862ae5a65a6d76f384d286c53dc0c0a0c7e34c5 100644 (file)
@@ -596,7 +596,7 @@ strptime() -- parse string to time tuple according to format specification\n\
 ";
   
 
-void
+DL_EXPORT(void)
 inittime()
 {
        PyObject *m, *d;
index a07ecef98dddf9fb15e1f2d593cb6176a9057fb6..bbccb43bce920857597310c9479374274b9eaf72 100644 (file)
@@ -79,7 +79,7 @@ static PyMethodDef timing_methods[] = {
 };
 
 
-void inittiming()
+DL_EXPORT(void) inittiming()
 {
        (void)Py_InitModule("timing", timing_methods);
        if (PyErr_Occurred())
index 8de3c5d3cf97d8ee8e6310136a1b2dbefb4bfdd4..529f521aec85c84de3fe2768b80d1b4a6f72f1d7 100644 (file)
@@ -237,7 +237,7 @@ static PyMethodDef xx_methods[] = {
 
 /* Initialization function for the module (*must* be called initxx) */
 
-void
+DL_EXPORT(void)
 initxx()
 {
        PyObject *m, *d;
index fc892d064b3021e196ba0608fc34fa24fe998f14..3e4e23dcfe822cffcf392d4d95a2f050ecf025a0 100644 (file)
@@ -788,7 +788,7 @@ static char zlib_module_documentation[]=
 "objects support decompress() and flush()."
 ;
 
-void
+DL_EXPORT(void)
 PyInit_zlib()
 {
         PyObject *m, *d, *ver;