Update issue 6070 patch to match the patch that was actually tested
[python.git] / PC / example_nt / example.c
blob953fb824e7f70fb4696c32e6ab4f7f5c835de4fc
1 #include "Python.h"
3 static PyObject *
4 ex_foo(PyObject *self, PyObject *args)
6 printf("Hello, world\n");
7 Py_INCREF(Py_None);
8 return Py_None;
11 static PyMethodDef example_methods[] = {
12 {"foo", ex_foo, METH_VARARGS, "foo() doc string"},
13 {NULL, NULL}
16 PyMODINIT_FUNC
17 initexample(void)
19 Py_InitModule("example", example_methods);