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

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Aug 20 18:58:55 CEST 2020


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

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

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

    Add :nn and update documentation


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

90f26ea12857c0c03ef5eec3236b9767d0333854
 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 67ab5828b..de714b3ec 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -3546,6 +3546,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
@@ -3558,8 +3560,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
       {
@@ -3663,6 +3665,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 16e67aa7e..69c44d277 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.