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
commit7889010731eec703eda68fb32b6805c65e3f1cbf (patch)
tree2ef252eeade1d3aae02fc8b881c9e6a0c5bb1e42 /PC/example_nt
parent23c9e0024af99379ae517b016b874d57127e9a97 (diff)
downloadcpython-git-7889010731eec703eda68fb32b6805c65e3f1cbf.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);
}