[latex3-commits] [latex3/latex3] object-tracking: Re-order some code (8082fb330)

github at latex-project.org github at latex-project.org
Wed Mar 27 09:57:31 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : object-tracking
Link       : https://github.com/latex3/latex3/commit/8082fb330910760a5872f1ed8d6da4907450546e

>---------------------------------------------------------------

commit 8082fb330910760a5872f1ed8d6da4907450546e
Author: Joseph Wright <joseph at texdev.net>
Date:   Wed Mar 27 08:54:08 2024 +0000

    Re-order some code


>---------------------------------------------------------------

8082fb330910760a5872f1ed8d6da4907450546e
 l3kernel/l3pdf.dtx | 36 ++++++++++++++++++++++++------------
 1 file changed, 24 insertions(+), 12 deletions(-)

diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index 8c0a4621a..1bc709031 100644
--- a/l3kernel/l3pdf.dtx
+++ b/l3kernel/l3pdf.dtx
@@ -325,13 +325,6 @@
 % \begin{macro}
 %   {\pdf_object_write:nnn, \pdf_object_write:nne, \pdf_object_write:nnx}
 % \begin{macro}{\pdf_object_ref:n}
-% \begin{macro}
-%   {
-%     \pdf_object_unnamed_write:nn, \pdf_object_unnamed_write:ne,
-%     \pdf_object_unnamed_write:nx
-%   }
-% \begin{macro}{\pdf_object_ref_last:}
-% \begin{macro}[pTF]{\pdf_object_if_exist:n}
 %   Simple to do: all objects create a constant |int| so it is not a
 %   backend-specific name.
 %    \begin{macrocode}
@@ -356,13 +349,37 @@
     \exp_args:Nv \@@_backend_object_ref:n
       { c_@@_object_ #1 _int }
   }
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}
+%   {
+%     \pdf_object_unnamed_write:nn, \pdf_object_unnamed_write:ne,
+%     \pdf_object_unnamed_write:nx
+%   }
+%   No tracking needed here.
+%    \begin{macrocode}
 \cs_new_protected:Npn \pdf_object_unnamed_write:nn #1#2
   {
     \exp_args:Ne \@@_backend_object_now:nn {#1} {#2}
     \bool_gset_true:N \g_@@_init_bool
   }
 \cs_generate_variant:Nn \pdf_object_unnamed_write:nn { ne , nx }
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\pdf_object_ref_last:}
+%   A one-step wrapper for consistency.
+%    \begin{macrocode}
 \cs_new:Npn \pdf_object_ref_last: { \@@_backend_object_last: }
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[pTF]{\pdf_object_if_exist:n}
+%   Check for an existing assignment.
+%    \begin{macrocode}
 \prg_new_conditional:Npnn \pdf_object_if_exist:n #1 { p , T , F , TF }
   {
     \int_if_exist:cTF { c_@@_object_ #1 _int }
@@ -371,11 +388,6 @@
   }
 %    \end{macrocode}
 % \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
 %
 % \begin{macro}{\pdf_pageobject_ref:n}
 %    \begin{macrocode}





More information about the latex3-commits mailing list.