diff options
| author | Thomas Wouters <thomas@python.org> | 2000-07-22 19:25:51 +0000 |
|---|---|---|
| committer | Thomas Wouters <thomas@python.org> | 2000-07-22 19:25:51 +0000 |
| commit | 878857ec08b89b165fb7082611e039e84dc4c7e2 (patch) | |
| tree | adb9bd95984fc3e332ffd964464f0217f6781eaf /PC/example_nt | |
| parent | bf9e12c5680d4ecfd1f94ad16e7f37a0ce83999d (diff) | |
| download | cpython-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.c | 5 |
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); } |
