summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def')
-rw-r--r--Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def49
1 files changed, 23 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
index 2ef1d26d116..3c51094bbc8 100644
--- a/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
+++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
@@ -26,7 +26,7 @@
%%
%% File: l3backend-basics.dtx
\ProvidesExplFile
- {l3backend-pdftex.def}{2024-03-14}{}
+ {l3backend-pdftex.def}{2024-04-11}{}
{L3 backend support: PDF output (pdfTeX)}
\cs_if_exist:NTF \__kernel_dependency_version_check:nn
{
@@ -725,41 +725,38 @@
{ / #1 ~ #2 }
}
\prop_new:N \g__pdf_backend_object_prop
-\cs_new_protected:Npn \__pdf_backend_object_new:n #1
+\cs_new_protected:Npn \__pdf_backend_object_new:
{
\tex_pdfobj:D
reserveobjnum ~
- \int_const:cn
- { c__pdf_object_ \tl_to_str:n {#1} _int }
- { \tex_pdflastobj:D }
+ \int_gset:Nn \g__pdf_backend_object_int
+ { \tex_pdflastobj:D }
}
-\cs_new:Npn \__pdf_backend_object_ref:n #1
- { \int_use:c { c__pdf_object_ \tl_to_str:n {#1} _int } ~ 0 ~ R }
+\cs_new:Npn \__pdf_backend_object_ref:n #1 { #1 ~ 0 ~ R }
+\cs_new:Npn \__pdf_backend_object_id:n #1 {#1}
\cs_new_protected:Npn \__pdf_backend_object_write:nnn #1#2#3
{
\tex_immediate:D \tex_pdfobj:D
- useobjnum ~
- \int_use:c
- { c__pdf_object_ \tl_to_str:n {#1} _int }
- \__pdf_backend_object_write:nn {#2} {#3}
+ useobjnum ~ #1
+ \__pdf_backend_object_write:nn {#2} {#3}
}
\cs_new:Npn \__pdf_backend_object_write:nn #1#2
{
- \str_case:nn {#1}
- {
- { array } { { [ ~ \exp_not:n {#2} ~ ] } }
- { dict } { { << ~ \exp_not:n {#2} ~ >> } }
- { fstream }
- {
- stream ~ attr ~ { \__pdf_exp_not_i:nn #2 } ~
- file ~ { \__pdf_exp_not_ii:nn #2 }
- }
- { stream }
- {
- stream ~ attr ~ { \__pdf_exp_not_i:nn #2 } ~
- { \__pdf_exp_not_ii:nn #2 }
- }
- }
+ \str_case:nn {#1}
+ {
+ { array } { { [ ~ \exp_not:n {#2} ~ ] } }
+ { dict } { { << ~ \exp_not:n {#2} ~ >> } }
+ { fstream }
+ {
+ stream ~ attr ~ { \__pdf_exp_not_i:nn #2 } ~
+ file ~ { \__pdf_exp_not_ii:nn #2 }
+ }
+ { stream }
+ {
+ stream ~ attr ~ { \__pdf_exp_not_i:nn #2 } ~
+ { \__pdf_exp_not_ii:nn #2 }
+ }
+ }
}
\cs_generate_variant:Nn \__pdf_backend_object_write:nnn { nne }
\cs_new:Npn \__pdf_exp_not_i:nn #1#2 { \exp_not:n {#1} }