[Python-checkins] CVS: python/dist/src/Demo/pysvr pysvr.c,1.7,1.8

Thomas Wouters python-dev@python.org
2000年7月22日 12:25:54 -0700


Update of /cvsroot/python/python/dist/src/Demo/pysvr
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24717/Demo/pysvr
Modified Files:
	pysvr.c 
Log Message:
Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
Index: pysvr.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/pysvr/pysvr.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** pysvr.c	1999年10月05日 22:16:07	1.7
--- pysvr.c	2000年07月22日 19:25:51	1.8
***************
*** 35,39 ****
 extern int optind;
 extern char *optarg;
! extern int getopt();
 
 struct workorder {
--- 35,39 ----
 extern int optind;
 extern char *optarg;
! extern int getopt(int, char **, char *);
 
 struct workorder {
***************
*** 98,102 ****
 
 static void
! usage()
 {
 	fprintf(stderr, usage_line, progname);
--- 98,102 ----
 
 static void
! usage(void)
 {
 	fprintf(stderr, usage_line, progname);
***************
*** 221,225 ****
 
 static void
! init_python()
 {
 	if (gtstate)
--- 221,225 ----
 
 static void
! init_python(void)
 {
 	if (gtstate)
***************
*** 269,273 ****
 
 static void
! oprogname()
 {
 	int save = errno;
--- 269,273 ----
 
 static void
! oprogname(void)
 {
 	int save = errno;
***************
*** 365,369 ****
 
 static void
! ps()
 {
 	char buffer[100];
--- 365,369 ----
 
 static void
! ps(void)
 {
 	char buffer[100];

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