]> granicus.if.org Git - python/commitdiff
Fix prototypes generated by makesetup, so they include '(void)' rather than
authorThomas Wouters <thomas@python.org>
Sun, 23 Jul 2000 00:02:15 +0000 (00:02 +0000)
committerThomas Wouters <thomas@python.org>
Sun, 23 Jul 2000 00:02:15 +0000 (00:02 +0000)
empty argumentlists.

Modules/config.c.in
Modules/makesetup

index 106b084978d29b62cdb729d94353b7a53bd99e43..da7cabb35373fc573b3a8fdc215e9214afe52b5c 100644 (file)
@@ -20,8 +20,8 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
 /* -- ADDMODULE MARKER 1 -- */
 
-extern void PyMarshal_Init();
-extern void initimp();
+extern void PyMarshal_Init(void);
+extern void initimp(void);
 
 struct _inittab _PyImport_Inittab[] = {
 
index 3da53234bff5b8c847679136ad8fffb1d2bf0182..c0c2712eb6b95a6c434214f5752a7f11dbf56fd4 100755 (executable)
@@ -23,7 +23,7 @@
 # Copying config.c.in to config.c:
 # - insert an identifying comment at the start
 # - for each <module> mentioned in Setup before *noconfig*:
-#   + insert 'extern void init<module>();' before MARKER 1
+#   + insert 'extern void init<module>(void);' before MARKER 1
 #   + insert '{"<module>", initmodule},' before MARKER 2
 #
 # Copying Makefile.pre to Makefile:
@@ -234,7 +234,7 @@ sed -e 's/[         ]*#.*//' -e '/^[        ]*$/d' |
        INITBITS=
        for mod in $MODS
        do
-               EXTDECLS="${EXTDECLS}extern void init$mod();$NL"
+               EXTDECLS="${EXTDECLS}extern void init$mod(void);$NL"
                INITBITS="${INITBITS}   {\"$mod\", init$mod},$NL"
        done