summaryrefslogtreecommitdiff
path: root/Demo/embed
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 19:25:51 +0000
committerThomas Wouters <thomas@python.org>2000-07-22 19:25:51 +0000
commit878857ec08b89b165fb7082611e039e84dc4c7e2 (patch)
treeadb9bd95984fc3e332ffd964464f0217f6781eaf /Demo/embed
parentbf9e12c5680d4ecfd1f94ad16e7f37a0ce83999d (diff)
downloadcpython-878857ec08b89b165fb7082611e039e84dc4c7e2.tar.gz
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
Diffstat (limited to 'Demo/embed')
-rw-r--r--Demo/embed/demo.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/Demo/embed/demo.c b/Demo/embed/demo.c
index 579ba0706e..26df355e5c 100644
--- a/Demo/embed/demo.c
+++ b/Demo/embed/demo.c
@@ -2,11 +2,9 @@
#include "Python.h"
-void initxyzzy(); /* Forward */
+void initxyzzy(void); /* Forward */
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
/* Pass argv[0] to the Python interpreter */
Py_SetProgramName(argv[0]);
@@ -46,10 +44,9 @@ main(argc, argv)
/* A static module */
+/* 'self' is not used */
static PyObject *
-xyzzy_foo(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+xyzzy_foo(PyObject *self, PyObjecT *args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
@@ -62,7 +59,7 @@ static PyMethodDef xyzzy_methods[] = {
};
void
-initxyzzy()
+initxyzzy(void)
{
PyImport_AddModule("xyzzy");
Py_InitModule("xyzzy", xyzzy_methods);