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

Skip to content

Commit 6891cd3

Browse files
committed
A few minor improvements
1 parent 6c71091 commit 6891cd3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/ext/newtypes.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,9 @@ \subsection{Supporting cyclic garbage collection}
723723
\end{verbatim}
724724

725725
For each subobject that can participate in cycles, we need to call the
726-
\cfunction{visit} function passed to the traversal method passing the
727-
subobject and the extra argument passed to the traversal method.
726+
\cfunction{visit} function, which is passed to the traversal method.
727+
The \cfunction{visit} function takes as arguments the subobject and
728+
the extra argument \var{arg} passed to the traversal method.
728729

729730
We also need to provide a method for clearing any subobjects that can
730731
participate in cycles. We implement the method and reimplement the
@@ -757,7 +758,7 @@ \subsection{Supporting cyclic garbage collection}
757758
\end{verbatim}
758759

759760
That's pretty much it. If we had written custom \member{tp_alloc} or
760-
\member{tp_free} slots, we'd need to modify then for cyclic-garbage
761+
\member{tp_free} slots, we'd need to modify them for cyclic-garbage
761762
collection. Most extensions will use the versions automatically
762763
provided.
763764

0 commit comments

Comments
 (0)