From: Raymond Hettinger Date: Sun, 7 Sep 2003 23:38:08 +0000 (+0000) Subject: Fix NULL markup. X-Git-Tag: v2.3.1~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=161edfc5ecfc1a4739b8fc225198aa2ee016acf5;p=thirdparty%2FPython%2Fcpython.git Fix NULL markup. --- diff --git a/Doc/lib/libdl.tex b/Doc/lib/libdl.tex index 358f0836a09b..354035eac57b 100644 --- a/Doc/lib/libdl.tex +++ b/Doc/lib/libdl.tex @@ -87,7 +87,7 @@ is useful in code like: Call the function named \var{name} in the referenced shared object. The arguments must be either Python integers, which will be passed as is, Python strings, to which a pointer will be passed, -or \code{None}, which will be passed as \NULL. Note that +or \code{None}, which will be passed as \NULL{}. Note that strings should only be passed to functions as \ctype{const char*}, as Python will not like its string mutated. diff --git a/Doc/lib/libweakref.tex b/Doc/lib/libweakref.tex index 664b76d1a53a..907e73da7da7 100644 --- a/Doc/lib/libweakref.tex +++ b/Doc/lib/libweakref.tex @@ -250,7 +250,7 @@ PyTypeObject PyInstance_Type = { \end{verbatim} The type constructor is responsible for initializing the weak reference -list to \NULL: +list to \NULL{}: \begin{verbatim} static PyObject * @@ -266,7 +266,7 @@ instance_new() { The only further addition is that the destructor needs to call the weak reference manager to clear any weak references. This should be done before any other parts of the destruction have occurred, but is -only required if the weak reference list is non-\NULL: +only required if the weak reference list is non-\NULL{}: \begin{verbatim} static void