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
This commit is contained in:
Thomas Wouters 2000-07-22 19:25:51 +00:00
parent 23c9e0024a
commit 7889010731
14 changed files with 109 additions and 145 deletions

View file

@ -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);
}