]> granicus.if.org Git - python/commitdiff
make struct static
authorBenjamin Peterson <benjamin@python.org>
Mon, 20 Oct 2008 21:04:06 +0000 (21:04 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 20 Oct 2008 21:04:06 +0000 (21:04 +0000)
Doc/extending/extending.rst

index 4af7168a18fce09a1a92a1e066e8684694e700c5..96d5654d8928c61b04db56c0cf294195d20611f8 100644 (file)
@@ -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 */