summaryrefslogtreecommitdiffstats
path: root/Modules/makesetup
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-23 00:02:15 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-23 00:02:15 (GMT)
commit53e7fd77a704df337bad3e9fae2c7f70430e1be2 (patch)
tree0bf76e6a5704b69d634ac8c080bee0eb8968aba2 /Modules/makesetup
parenta534594fc72cddd5c29ed8debbb3d2f16792db97 (diff)
downloadcpython-53e7fd77a704df337bad3e9fae2c7f70430e1be2.zip
cpython-53e7fd77a704df337bad3e9fae2c7f70430e1be2.tar.gz
cpython-53e7fd77a704df337bad3e9fae2c7f70430e1be2.tar.bz2
Fix prototypes generated by makesetup, so they include '(void)' rather than
empty argumentlists.
Diffstat (limited to 'Modules/makesetup')
-rwxr-xr-xModules/makesetup4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/makesetup b/Modules/makesetup
index 3da5323..c0c2712 100755
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -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