doc: fix compile error on "shoddy" example extension (GH-217)

(cherry picked from commit fb8fe72fc5)
This commit is contained in:
INADA Naoki 2017-02-21 23:55:49 +09:00 committed by GitHub
parent 0936a00fe0
commit 9ab8eaf965
2 changed files with 2 additions and 1 deletions

View file

@ -5,4 +5,5 @@ setup(name="noddy", version="1.0",
Extension("noddy2", ["noddy2.c"]), Extension("noddy2", ["noddy2.c"]),
Extension("noddy3", ["noddy3.c"]), Extension("noddy3", ["noddy3.c"]),
Extension("noddy4", ["noddy4.c"]), Extension("noddy4", ["noddy4.c"]),
Extension("shoddy", ["shoddy.c"]),
]) ])

View file

@ -31,7 +31,7 @@ Shoddy_init(Shoddy *self, PyObject *args, PyObject *kwds)
static PyTypeObject ShoddyType = { static PyTypeObject ShoddyType = {
PyObject_HEAD_INIT(NULL) PyVarObject_HEAD_INIT(NULL, 0)
"shoddy.Shoddy", /* tp_name */ "shoddy.Shoddy", /* tp_name */
sizeof(Shoddy), /* tp_basicsize */ sizeof(Shoddy), /* tp_basicsize */
0, /* tp_itemsize */ 0, /* tp_itemsize */