[latex3-commits] [latex3/latex3] object-tracking: Expand object names in all cases (5344bfff2)
github at latex-project.org
github at latex-project.org
Wed Mar 27 10:07:40 CET 2024
Repository : https://github.com/latex3/latex3
On branch : object-tracking
Link : https://github.com/latex3/latex3/commit/5344bfff2087f10a9e9b701c8e522d3a06cfe018
>---------------------------------------------------------------
commit 5344bfff2087f10a9e9b701c8e522d3a06cfe018
Author: Joseph Wright <joseph at texdev.net>
Date: Wed Mar 27 09:03:46 2024 +0000
Expand object names in all cases
This will make a split rather easier.
>---------------------------------------------------------------
5344bfff2087f10a9e9b701c8e522d3a06cfe018
l3kernel/l3pdf.dtx | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index 1bc709031..40a2d3219 100644
--- a/l3kernel/l3pdf.dtx
+++ b/l3kernel/l3pdf.dtx
@@ -321,15 +321,18 @@
% \end{macrocode}
% \end{variable}
%
-% \begin{macro}{\pdf_object_new:n, \@@_object_new:n}
+% \begin{macro}{\pdf_object_new:n, \@@_object_new:n, \@@_object_new:e}
% \begin{macro}
-% {\pdf_object_write:nnn, \pdf_object_write:nne, \pdf_object_write:nnx}
-% \begin{macro}{\pdf_object_ref:n}
+% {
+% \pdf_object_write:nnn, \pdf_object_write:nne, \pdf_object_write:nnx
+% \@@_object_write:nnn, \@@_object_write:enn
+% }
+% \begin{macro}{\pdf_object_ref:n, \@@_object_ref:n, \@@_object_ref:e}
% Simple to do: all objects create a constant |int| so it is not a
% backend-specific name.
% \begin{macrocode}
\cs_new_protected:Npn \pdf_object_new:n #1
- { \exp_args:Ne \@@_object_new:n {#1} }
+ { \@@_object_new:e {#1} }
\cs_new_protected:Npn \@@_object_new:n #1
{
\@@_backend_object_new:n {#1}
@@ -337,18 +340,25 @@
{ c_@@_object_ #1 _int }
{ \g_@@_backend_object_int }
}
+\cs_generate_variant:Nn \@@_object_new:n { e }
\cs_new_protected:Npn \pdf_object_write:nnn #1#2#3
+ { \@@_object_write:enn {#1} {#2} {#3} }
+\cs_generate_variant:Nn \pdf_object_write:nnn { nne , nnx }
+\cs_new_protected:Npn \@@_object_write:nnn #1#2#3
{
\exp_args:Nv \@@_backend_object_write:nnn
{ c_@@_object_ #1 _int } {#2} {#3}
\bool_gset_true:N \g_@@_init_bool
}
-\cs_generate_variant:Nn \pdf_object_write:nnn { nne , nnx }
+\cs_generate_variant:Nn \@@_object_write:nnn { e }
\cs_new:Npn \pdf_object_ref:n #1
+ { \@@_object_ref:e {#1} }
+\cs_new:Npn \@@_object_ref:n #1
{
\exp_args:Nv \@@_backend_object_ref:n
{ c_@@_object_ #1 _int }
}
+\cs_generate_variant:Nn \@@_object_ref:n { e }
% \end{macrocode}
% \end{macro}
% \end{macro}
More information about the latex3-commits
mailing list.