[latex3-commits] [latex3/latex3] main: Move implementation of \c_sys_engine_version_str to l3sys (6190148c4)

github at latex-project.org github at latex-project.org
Fri May 5 14:12:08 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/6190148c4bc56f32f41d1b6ee5cf6d9f06ce0160

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

commit 6190148c4bc56f32f41d1b6ee5cf6d9f06ce0160
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri May 5 13:00:19 2023 +0100

    Move implementation of \c_sys_engine_version_str to l3sys


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

6190148c4bc56f32f41d1b6ee5cf6d9f06ce0160
 l3kernel/l3candidates.dtx | 70 -----------------------------------------------
 l3kernel/l3sys.dtx        | 64 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 70 deletions(-)

diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 89104ae32..bfc22c434 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -482,76 +482,6 @@
 % \end{macro}
 % \end{macro}
 %
-% \subsection{Additions to \pkg{l3sys}}
-%
-%    \begin{macrocode}
-%<@@=sys>
-%    \end{macrocode}
-%
-% \begin{variable}{\c_sys_engine_version_str}
-%   Various different engines, various different ways to extract the
-%   data!
-%    \begin{macrocode}
-\str_const:Nx \c_sys_engine_version_str
-  {
-    \str_case:on \c_sys_engine_str
-      {
-        { pdftex }
-          {
-            \int_div_truncate:nn { \tex_pdftexversion:D } { 100 }
-            .
-            \int_mod:nn { \tex_pdftexversion:D } { 100 }
-            .
-            \tex_pdftexrevision:D
-          }
-        { ptex }
-          {
-            \cs_if_exist:NT \tex_ptexversion:D
-              {
-                p
-                \int_use:N  \tex_ptexversion:D
-                .
-                \int_use:N \tex_ptexminorversion:D
-                \tex_ptexrevision:D
-                -
-                \int_use:N \tex_epTeXversion:D
-              }
-          }
-        { luatex }
-          {
-            \int_div_truncate:nn { \tex_luatexversion:D } { 100 }
-            .
-            \int_mod:nn { \tex_luatexversion:D } { 100 }
-            .
-            \tex_luatexrevision:D
-          }
-        { uptex }
-          {
-            \cs_if_exist:NT \tex_ptexversion:D
-              {
-                p
-                \int_use:N  \tex_ptexversion:D
-                .
-                \int_use:N \tex_ptexminorversion:D
-                \tex_ptexrevision:D
-                -
-                u
-                \int_use:N  \tex_uptexversion:D
-                \tex_uptexrevision:D
-                -
-                \int_use:N \tex_epTeXversion:D
-              }
-          }
-        { xetex }
-          {
-            \int_use:N \tex_XeTeXversion:D
-            \tex_XeTeXrevision:D
-          }
-      }
-  }
-%    \end{macrocode}
-% \end{variable}
-%
 % \subsection{Additions to \pkg{l3tl}}
 %
 % \subsubsection{Building a token list}
diff --git a/l3kernel/l3sys.dtx b/l3kernel/l3sys.dtx
index 162652df1..9ae3bf8e1 100644
--- a/l3kernel/l3sys.dtx
+++ b/l3kernel/l3sys.dtx
@@ -493,6 +493,70 @@
 %    \end{macrocode}
 % \end{variable}
 %
+% \begin{variable}{\c_sys_engine_version_str}
+%   Various different engines, various different ways to extract the
+%   data!
+%    \begin{macrocode}
+\str_const:Nx \c_sys_engine_version_str
+  {
+    \str_case:on \c_sys_engine_str
+      {
+        { pdftex }
+          {
+            \int_div_truncate:nn { \tex_pdftexversion:D } { 100 }
+            .
+            \int_mod:nn { \tex_pdftexversion:D } { 100 }
+            .
+            \tex_pdftexrevision:D
+          }
+        { ptex }
+          {
+            \cs_if_exist:NT \tex_ptexversion:D
+              {
+                p
+                \int_use:N  \tex_ptexversion:D
+                .
+                \int_use:N \tex_ptexminorversion:D
+                \tex_ptexrevision:D
+                -
+                \int_use:N \tex_epTeXversion:D
+              }
+          }
+        { luatex }
+          {
+            \int_div_truncate:nn { \tex_luatexversion:D } { 100 }
+            .
+            \int_mod:nn { \tex_luatexversion:D } { 100 }
+            .
+            \tex_luatexrevision:D
+          }
+        { uptex }
+          {
+            \cs_if_exist:NT \tex_ptexversion:D
+              {
+                p
+                \int_use:N  \tex_ptexversion:D
+                .
+                \int_use:N \tex_ptexminorversion:D
+                \tex_ptexrevision:D
+                -
+                u
+                \int_use:N  \tex_uptexversion:D
+                \tex_uptexrevision:D
+                -
+                \int_use:N \tex_epTeXversion:D
+              }
+          }
+        { xetex }
+          {
+            \int_use:N \tex_XeTeXversion:D
+            \tex_XeTeXrevision:D
+          }
+      }
+  }
+%    \end{macrocode}
+% \end{variable}
+%
 % \subsubsection{Platform}
 %
 % \begin{macro}[pTF]{\sys_if_platform_unix:, \sys_if_platform_windows:}





More information about the latex3-commits mailing list.