Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5960d80

Browse files
committed
s/it's/its/, s/NULL/NULL{}/, where appropriate.
1 parent eda2930 commit 5960d80

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/ext/newtypes.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ \subsection{Providing finer control over data attributes}
761761
\end{verbatim}
762762

763763
With these changes, we can assure that the \member{first} and
764-
\member{last} members are never NULL so we can remove checks for \NULL
764+
\member{last} members are never \NULL{} so we can remove checks for \NULL{}
765765
values in almost all cases. This means that most of the
766766
\cfunction{Py_XDECREF()} calls can be converted to \cfunction{Py_DECREF()}
767767
calls. The only place we can't change these calls is in the
@@ -891,15 +891,15 @@ \subsection{Supporting cyclic garbage collection}
891891
\end{verbatim}
892892

893893
Notice the use of a temporary variable in \cfunction{Noddy_clear()}.
894-
We use the temporary variable so that we can set each member to \NULL
895-
before decrementing it's reference count. We do this because, as was
894+
We use the temporary variable so that we can set each member to \NULL{}
895+
before decrementing its reference count. We do this because, as was
896896
discussed earlier, if the reference count drops to zero, we might
897897
cause code to run that calls back into the object. In addition,
898898
because we now support garbage collection, we also have to worry about
899899
code being run that triggers garbage collection. If garbage
900900
collection is run, our \member{tp_traverse} handler could get called.
901901
We can't take a chance of having \cfunction{Noddy_traverse()} called
902-
when a member's reference count has dropped to zero and it's value
902+
when a member's reference count has dropped to zero and its value
903903
hasn't been set to \NULL.
904904

905905
Python 2.4 and higher provide a \cfunction{Py_CLEAR()} that automates

0 commit comments

Comments
 (0)