summaryrefslogtreecommitdiff
path: root/PC/example_nt
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 /PC/example_nt
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 'PC/example_nt')
-rw-r--r--PC/example_nt/example.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/PC/example_nt/example.c b/PC/example_nt/example.c
index dd8964bbb0..63682f11f0 100644
--- a/PC/example_nt/example.c
+++ b/PC/example_nt/example.c
@@ -1,8 +1,7 @@
#include "Python.h"
static PyObject *
-ex_foo(self, args)
- PyObject *self, *args;
+ex_foo(PyObject *self, PyObject *args)
{
printf("Hello, world\n");
Py_INCREF(Py_None);
@@ -15,7 +14,7 @@ static PyMethodDef example_methods[] = {
};
void
-initexample()
+initexample(void)
{
Py_InitModule("example", example_methods);
}