diff options
author | Georg Brandl <georg@python.org> | 2008-01-26 13:41:21 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-01-26 13:41:21 +0000 |
commit | a7364408cd02ddfa61f04ed255a43c0a0e5c697a (patch) | |
tree | 8b8a0168c8cbc36d61ea9ff7d9e37920a426e726 | |
parent | 0522548d610098641a8420d3970c48e0dbc8a8ca (diff) | |
download | cpython-git-a7364408cd02ddfa61f04ed255a43c0a0e5c697a.tar.gz |
Fix markup again.
-rw-r--r-- | Doc/c-api/module.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 4008d1a43c..9d16ef560c 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -18,7 +18,7 @@ There are only a few functions special to module objects. is exposed to Python programs as ``types.ModuleType``. -.. cmacro:: int PyModule_Check(PyObject *p) +.. cfunction:: int PyModule_Check(PyObject *p) Return true if *p* is a module object, or a subtype of a module object. @@ -26,7 +26,7 @@ There are only a few functions special to module objects. Allowed subtypes to be accepted. -.. cmacro:: int PyModule_CheckExact(PyObject *p) +.. cfunction:: int PyModule_CheckExact(PyObject *p) Return true if *p* is a module object, but not a subtype of :cdata:`PyModule_Type`. @@ -104,7 +104,7 @@ There are only a few functions special to module objects. .. versionadded:: 2.0 -.. cmacro:: int PyModule_AddIntMacro(PyObject *module, macro) +.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro) Add an int constant to *module*. The name and the value are taken from *macro*. For example ``PyModule_AddConstant(module, AF_INET)`` adds the int @@ -113,7 +113,7 @@ There are only a few functions special to module objects. .. versionadded:: 2.6 -.. cmacro:: int PyModule_AddStringMacro(PyObject *module, macro) +.. cfunction:: int PyModule_AddStringMacro(PyObject *module, macro) Add a string constant to *module*. |