[Python-checkins] CVS: python/dist/src/Demo/embed demo.c,1.4,1.5

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


Update of /cvsroot/python/python/dist/src/Demo/embed
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24717/Demo/embed
Modified Files:
	demo.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: demo.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/embed/demo.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** demo.c	1999年03月09日 17:07:24	1.4
--- demo.c	2000年07月22日 19:25:50	1.5
***************
*** 3,11 ****
 #include "Python.h"
 
! void initxyzzy(); /* Forward */
 
! main(argc, argv)
! 	int argc;
! 	char **argv;
 {
 	/* Pass argv[0] to the Python interpreter */
--- 3,9 ----
 #include "Python.h"
 
! void initxyzzy(void); /* Forward */
 
! main(int argc, char **argv)
 {
 	/* Pass argv[0] to the Python interpreter */
***************
*** 47,54 ****
 /* A static module */
 
 static PyObject *
! xyzzy_foo(self, args)
! 	PyObject *self; /* Not used */
! 	PyObject *args;
 {
 	if (!PyArg_ParseTuple(args, ""))
--- 45,51 ----
 /* A static module */
 
+ /* 'self' is not used */
 static PyObject *
! xyzzy_foo(PyObject *self, PyObjecT *args)
 {
 	if (!PyArg_ParseTuple(args, ""))
***************
*** 63,67 ****
 
 void
! initxyzzy()
 {
 	PyImport_AddModule("xyzzy");
--- 60,64 ----
 
 void
! initxyzzy(void)
 {
 	PyImport_AddModule("xyzzy");

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