[Python-checkins] CVS: python/dist/src/Modules config.c.in,1.70,1.71 makesetup,1.25,1.26

Thomas Wouters python-dev@python.org
Sat, 22 Jul 2000 17:02:18 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17423

Modified Files:
	config.c.in makesetup 
Log Message:

Fix prototypes generated by makesetup, so they include '(void)' rather than
empty argumentlists.



Index: config.c.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/config.c.in,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -r1.70 -r1.71
*** config.c.in	2000/07/12 12:09:05	1.70
--- config.c.in	2000/07/23 00:02:15	1.71
***************
*** 21,26 ****
  /* -- ADDMODULE MARKER 1 -- */
  
! extern void PyMarshal_Init();
! extern void initimp();
  
  struct _inittab _PyImport_Inittab[] = {
--- 21,26 ----
  /* -- ADDMODULE MARKER 1 -- */
  
! extern void PyMarshal_Init(void);
! extern void initimp(void);
  
  struct _inittab _PyImport_Inittab[] = {

Index: makesetup
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/makesetup,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** makesetup	2000/07/07 16:21:31	1.25
--- makesetup	2000/07/23 00:02:15	1.26
***************
*** 24,28 ****
  # - insert an identifying comment at the start
  # - for each <module> mentioned in Setup before *noconfig*:
! #   + insert 'extern void init<module>();' before MARKER 1
  #   + insert '{"<module>", initmodule},' before MARKER 2
  #
--- 24,28 ----
  # - insert an identifying comment at the start
  # - for each <module> mentioned in Setup before *noconfig*:
! #   + insert 'extern void init<module>(void);' before MARKER 1
  #   + insert '{"<module>", initmodule},' before MARKER 2
  #
***************
*** 235,239 ****
  	for mod in $MODS
  	do
! 		EXTDECLS="${EXTDECLS}extern void init$mod();$NL"
  		INITBITS="${INITBITS}	{\"$mod\", init$mod},$NL"
  	done
--- 235,239 ----
  	for mod in $MODS
  	do
! 		EXTDECLS="${EXTDECLS}extern void init$mod(void);$NL"
  		INITBITS="${INITBITS}	{\"$mod\", init$mod},$NL"
  	done