[latex3-commits] [git/LaTeX3-latex3-latex3] version-check: Add :nn and update documentation (b6dee93cb)

PhelypeOleinik tex.phelype at gmail.com
Mon Aug 3 20:18:05 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : version-check
Link       : https://github.com/latex3/latex3/commit/b6dee93cb5e5a9386c9dca2ce07331f0e31c789e

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

commit b6dee93cb5e5a9386c9dca2ce07331f0e31c789e
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Mon Aug 3 15:18:05 2020 -0300

    Add :nn and update documentation


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

b6dee93cb5e5a9386c9dca2ce07331f0e31c789e
 l3kernel/l3file.dtx             |  8 ++++++--
 l3kernel/l3kernel-functions.dtx | 12 ++++++++----
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index 14725d166..3c80d7b62 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -3612,6 +3612,8 @@
 % \subsection{Checking the version of kernel dependencies}
 %
 % \begin{macro}{\__kernel_dependency_version_check:Nn}
+% \begin{macro}{\__kernel_dependency_version_check:nn}
+% \begin{macro}{\@@_kernel_dependency_compare:nnn,\@@_parse_version:w}
 %   This function is responsible for checking if dependencies of the
 %   \LaTeX3 kernel match the version preloaded in the \LaTeXe{} kernel.
 %   If versions don't match, the function attempts to tell why by
@@ -3624,8 +3626,8 @@
 %   the required date, it's an error and the loading should abort.
 %    \begin{macrocode}
 \cs_new_protected:Npn \__kernel_dependency_version_check:Nn #1
-  { \exp_args:NV \@@_kernel_dependency_compare:nn #1 }
-\cs_new_protected:Npn \@@_kernel_dependency_compare:nn #1
+  { \exp_args:NV \__kernel_dependency_version_check:nn #1 }
+\cs_new_protected:Npn \__kernel_dependency_version_check:nn #1
   {
     \cs_if_exist:NTF \c__kernel_expl_date_tl
       {
@@ -3729,6 +3731,8 @@
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
+% \end{macro}
+% \end{macro}
 %
 % \subsection{Messages}
 %
diff --git a/l3kernel/l3kernel-functions.dtx b/l3kernel/l3kernel-functions.dtx
index 4ac53e700..072e71f39 100644
--- a/l3kernel/l3kernel-functions.dtx
+++ b/l3kernel/l3kernel-functions.dtx
@@ -101,12 +101,16 @@
 %   the \meta{follow-on}.
 % \end{function}
 %
-% \begin{function}{\__kernel_dependency_version_check:Nn}
+% \begin{function}{
+%     \__kernel_dependency_version_check:Nn,
+%     \__kernel_dependency_version_check:nn,
+%   }
 %   \begin{syntax}
-%     \cs{__kernel_dependency_version_check:Nn} \Arg{\cs{release}} \Arg{file}
+%     \cs{__kernel_dependency_version_check:Nn} \Arg{\cs{date}} \Arg{file}
+%     \cs{__kernel_dependency_version_check:nn} \Arg{date} \Arg{file}
 %   \end{syntax}
-%   Checks if the \meta{file}, dated \meta{release} has the same release date as
-%   the \pkg{l3kernel} preloaded in \LaTeXe{}.  If the dates don't match, the
+%   Checks if the loaded version of the \pkg{expl3} kernel is at least \meta{date},
+%   required by \meta{file}.  If the kernel date is older than \meta{date}, the
 %   loading of \meta{file} is aborted and an error is raised.
 % \end{function}
 %





More information about the latex3-commits mailing list.