[Python-checkins] CVS: python/dist/src/Demo/embed demo.c,1.4,1.5
Thomas Wouters
python-dev@python.org
Sat, 22 Jul 2000 12:25:54 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Parser acceler.c,2.15,2.16 bitset.c,2.9,2.10 firstsets.c,2.10,2.11 grammar.c,2.16,2.17 grammar1.c,2.10,2.11 intrcheck.c,2.33,2.34 listnode.c,2.12,2.13 metagrammar.c,2.9,2.10 myreadline.c,2.22,2.23 node.c,2.11,2.12 parser.c,2.15,2.16 parsetok.c,2.22,2.23 pgen.c,2.16,2.17 pgenmain.c,2.20,2.21 printgrammar.c,2.11,2.12 tokenizer.c,2.46,2.47
- Next message: [Python-checkins] CVS: python/dist/src/Demo/pysvr pysvr.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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");
- Previous message: [Python-checkins] CVS: python/dist/src/Parser acceler.c,2.15,2.16 bitset.c,2.9,2.10 firstsets.c,2.10,2.11 grammar.c,2.16,2.17 grammar1.c,2.10,2.11 intrcheck.c,2.33,2.34 listnode.c,2.12,2.13 metagrammar.c,2.9,2.10 myreadline.c,2.22,2.23 node.c,2.11,2.12 parser.c,2.15,2.16 parsetok.c,2.22,2.23 pgen.c,2.16,2.17 pgenmain.c,2.20,2.21 printgrammar.c,2.11,2.12 tokenizer.c,2.46,2.47
- Next message: [Python-checkins] CVS: python/dist/src/Demo/pysvr pysvr.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]