[Python-checkins] CVS: python/dist/src/PC WinMain.c,1.5,1.6 getpathp.c,1.18,1.19

Thomas Wouters python-dev@python.org
Sat, 22 Jul 2000 16:59:35 -0700


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

Modified Files:
	WinMain.c getpathp.c 
Log Message:
ANSIfication: remove very-old-varargs code, fix function declarations so
they include prototypes.


Index: WinMain.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/WinMain.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** WinMain.c	2000/07/08 20:49:58	1.5
--- WinMain.c	2000/07/22 23:59:33	1.6
***************
*** 6,10 ****
  #include "Python.h"
  
! extern int Py_Main();
  
  int WINAPI WinMain(
--- 6,10 ----
  #include "Python.h"
  
! extern int Py_Main(int, char **);
  
  int WINAPI WinMain(

Index: getpathp.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/getpathp.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** getpathp.c	2000/07/22 19:25:51	1.18
--- getpathp.c	2000/07/22 23:59:33	1.19
***************
*** 337,341 ****
  get_progpath(void)
  {
! 	extern char *Py_GetProgramName();
  	char *path = getenv("PATH");
  	char *prog = Py_GetProgramName();
--- 337,341 ----
  get_progpath(void)
  {
! 	extern char *Py_GetProgramName(void);
  	char *path = getenv("PATH");
  	char *prog = Py_GetProgramName();