summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-10-20 21:04:06 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-10-20 21:04:06 (GMT)
commit3851d12f8258904fea2975e8e5b72bcf8413430b (patch)
tree944c1ba5de47964a1dd5b49bfa76febc476e3749 /Doc
parente348d1a4ff2e6ded43f76fbb8ea400aa8d84a2fd (diff)
downloadcpython-3851d12f8258904fea2975e8e5b72bcf8413430b.zip
cpython-3851d12f8258904fea2975e8e5b72bcf8413430b.tar.gz
cpython-3851d12f8258904fea2975e8e5b72bcf8413430b.tar.bz2
make struct static
Diffstat (limited to 'Doc')
-rw-r--r--Doc/extending/extending.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index 4af7168..96d5654 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -300,13 +300,13 @@ parameters to be passed in as a tuple acceptable for parsing via
The :const:`METH_KEYWORDS` bit may be set in the third field if keyword
arguments should be passed to the function. In this case, the C function should
-accept a third ``PyObject *`` parameter which will be a dictionary of keywords.
+accept a third ``PyObject \*`` parameter which will be a dictionary of keywords.
Use :cfunc:`PyArg_ParseTupleAndKeywords` to parse the arguments to such a
function.
The method table must be referenced in the module definition structure::
- struct PyModuleDef spammodule = {
+ static struct PyModuleDef spammodule = {
PyModuleDef_HEAD_INIT,
"spam", /* name of module */
spam_doc, /* module documentation, may be NULL */