[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
2000年7月22日 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();

AltStyle によって変換されたページ (->オリジナル) /