[latex3-commits] [latex3/latex3] object-tracking: Re-order some code (08693d94a)
github at latex-project.org
github at latex-project.org
Mon Apr 1 09:18:22 CEST 2024
Repository : https://github.com/latex3/latex3
On branch : object-tracking
Link : https://github.com/latex3/latex3/commit/08693d94a5eeb4a53d0c09603fcd359088208fff
>---------------------------------------------------------------
commit 08693d94a5eeb4a53d0c09603fcd359088208fff
Author: Joseph Wright <joseph at texdev.net>
Date: Wed Mar 27 08:54:08 2024 +0000
Re-order some code
>---------------------------------------------------------------
08693d94a5eeb4a53d0c09603fcd359088208fff
l3kernel/l3pdf.dtx | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index e710ed91c..fb066314d 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.