mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
This commit is contained in:
parent
bd25030019
commit
f95a1b3c53
248 changed files with 113361 additions and 113361 deletions
|
|
@ -3,30 +3,30 @@
|
|||
static PyObject *
|
||||
ex_foo(PyObject *self, PyObject *args)
|
||||
{
|
||||
printf("Hello, world\n");
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
printf("Hello, world\n");
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
static PyMethodDef example_methods[] = {
|
||||
{"foo", ex_foo, METH_VARARGS, "foo() doc string"},
|
||||
{NULL, NULL}
|
||||
{"foo", ex_foo, METH_VARARGS, "foo() doc string"},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
static struct PyModuleDef examplemodule = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"example",
|
||||
"example module doc string",
|
||||
-1,
|
||||
example_methods,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"example",
|
||||
"example module doc string",
|
||||
-1,
|
||||
example_methods,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
PyInit_example(void)
|
||||
{
|
||||
return PyModule_Create(&examplemodule);
|
||||
return PyModule_Create(&examplemodule);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue