[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: starting to move backend hooks (dafc534)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jul 7 19:16:40 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/dafc5349d6e820d8c0c9cb580bc48c9358c351f2

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

commit dafc5349d6e820d8c0c9cb580bc48c9358c351f2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Jun 19 00:27:46 2020 +0200

    starting to move backend hooks


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

dafc5349d6e820d8c0c9cb580bc48c9358c351f2
 l3pdfcoredict.dtx |  2 ++
 pdfresources.dtx  | 33 +++++++++++++++++----------------
 2 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/l3pdfcoredict.dtx b/l3pdfcoredict.dtx
index d73ee23..10fbe6f 100644
--- a/l3pdfcoredict.dtx
+++ b/l3pdfcoredict.dtx
@@ -492,6 +492,8 @@
 
 \cs_generate_variant:Nn \pdfcoredict_gput:nnn {nnx}
 %    \end{macrocode}
+% \subsection{Hooks}
+% 
 % \subsection{Internal dictionary Code}
 %  Many code parts are quite similar: property lists for
 %  dictionaries are filled and output.
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 1bade9e..8d9efc6 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -177,9 +177,9 @@
 % \end{variable}
 % \begin{macro}
 %   {
-%     \@@_BACKEND_end_run_gput:n,
-%     \@@_BACKEND_lastpage_shipout_gput:n,
-%     \@@_BACKEND_thispage_shipout_gput:n
+%     \@@_backend_end_run_gput:n,
+%     \@@_backend_lastpage_shipout_gput:n,
+%     \@@_backend_thispage_shipout_gput:n
 %   }
 % These are the commands used to fill the three hook variables.
 % \begin{NOTE}{UF}
@@ -187,17 +187,17 @@
 % \end{NOTE}
 %    \begin{macrocode}
 %<*drivers>
-\cs_new_protected:Npn \@@_BACKEND_end_run_gput:n #1
+\cs_new_protected:Npn \@@_backend_end_run_gput:n #1
   {
     \tl_gput_right:Nn \g_@@_backend_end_run_tl { #1 }
   }
 
-\cs_new_protected:Npn \@@_BACKEND_lastpage_shipout_gput:n #1
+\cs_new_protected:Npn \@@_backend_lastpage_shipout_gput:n #1
   {
     \tl_gput_right:Nn \g_@@_backend_lastpage_shipout_tl { #1 }
   }
 
-\cs_new_protected:Npn \@@_BACKEND_thispage_shipout_gput:n #1
+\cs_new_protected:Npn \@@_backend_thispage_shipout_gput:n #1
   {
     \tl_gput_right:Nn \g_@@_backend_thispage_shipout_tl { #1 }
   }
@@ -246,24 +246,25 @@
 % \end{NOTE}
 %    \begin{macrocode}
 %<*drivers>
-\@@_BACKEND_thispage_shipout_gput:n
+\@@_backend_thispage_shipout_gput:n
   {
-    \exp_args:NV \@@_backend_ThisPage_gpush:n      { \g_shipout_readonly_int }
-    \exp_args:NV \@@_backend_PageResources_gpush:n { \g_shipout_readonly_int }
+     \exp_args:NV \@@_backend_ThisPage_gpush:n      { \g_shipout_readonly_int }
+     \exp_args:NV \@@_backend_PageResources_gpush:n { \g_shipout_readonly_int }
   }
 
 %!!!!! check if pdftex/luatex can run this in the immediate end-of-run
-%!!!!!!! check the name. To which module does this belong??
-\@@_BACKEND_lastpage_shipout_gput:n
+\@@_backend_lastpage_shipout_gput:n
   {
-    \@@_backend_PageResources_obj_gpush:          %ExtGState etc
+     \@@_backend_PageResources_obj_gpush:          %ExtGState etc
   }
 
-\@@_BACKEND_end_run_gput:n
+%!!  check the command names. Should this be internal
+%\__pdfcoredict?
+\@@_backend_end_run_gput:n
   {
-    \__pdfcoredict_Pages_gpush:            %pagesattr
-    \__pdfcoredict_Info_gpush:             %pdfinfo
-    \__pdfcoredict_Catalog_gpush:
+     \__pdfcoredict_Pages_gpush:            %pagesattr
+     \__pdfcoredict_Info_gpush:             %pdfinfo
+     \__pdfcoredict_Catalog_gpush:
   }
 %</drivers>
 %    \end{macrocode}





More information about the latex3-commits mailing list.