mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
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:
parent
23c9e0024a
commit
7889010731
14 changed files with 109 additions and 145 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue