[latex3-commits] [git/LaTeX3-latex3-latex3] master: Move \bool_const:Nn to stable (c7304b938)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Sep 20 08:31:09 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/c7304b938c2d0b593a65a11c1c188f340c2c861d

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

commit c7304b938c2d0b593a65a11c1c188f340c2c861d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Sep 20 07:31:09 2019 +0100

    Move \bool_const:Nn to stable


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

c7304b938c2d0b593a65a11c1c188f340c2c861d
 l3kernel/CHANGELOG.md                   |  1 +
 l3kernel/l3candidates.dtx               | 22 ----------------------
 l3kernel/l3prg.dtx                      | 22 ++++++++++++++++++++++
 l3kernel/testfiles/m3expl001.luatex.tlg |  4 ++--
 l3kernel/testfiles/m3expl001.ptex.tlg   |  4 ++--
 l3kernel/testfiles/m3expl001.tlg        |  4 ++--
 l3kernel/testfiles/m3expl001.uptex.tlg  |  4 ++--
 l3kernel/testfiles/m3expl001.xetex.tlg  |  4 ++--
 l3kernel/testfiles/m3expl003.luatex.tlg |  4 ++--
 l3kernel/testfiles/m3expl003.ptex.tlg   |  4 ++--
 l3kernel/testfiles/m3expl003.tlg        |  4 ++--
 l3kernel/testfiles/m3expl003.uptex.tlg  |  4 ++--
 l3kernel/testfiles/m3expl003.xetex.tlg  |  4 ++--
 13 files changed, 43 insertions(+), 42 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 3b1090f86..c83423979 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers.
 ### Changed
 
 - Moved to stable:
+  - `\bool_const:Nn`
   - `\dim_sign:n`
   - `\fp_sign:n`
   - `\int_sign:n`
diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index de9690d96..1990a8b2e 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -535,15 +535,6 @@
 %
 % \section{Additions to \pkg{l3prg}}
 %
-% \begin{function}[added = 2017-11-28]{\bool_const:Nn, \bool_const:cn}
-%   \begin{syntax}
-%     \cs{bool_const:Nn} \meta{boolean} \Arg{boolexpr}
-%   \end{syntax}
-%   Creates a new constant \meta{boolean} or raises an error if the name
-%   is already taken. The value of the \meta{boolean} is set globally to
-%   the result of evaluating the \meta{boolexpr}.
-% \end{function}
-%
 % \begin{function}[added = 2018-05-10]
 %   {
 %     \bool_set_inverse:N , \bool_set_inverse:c ,
@@ -1535,19 +1526,6 @@
 %
 % \subsection{Additions to \pkg{l3prg}}
 %
-% \begin{macro}[added = 2017-11-28]{\bool_const:Nn, \bool_const:cn}
-%   A merger between \cs{tl_const:Nn} and \cs{bool_set:Nn}.
-%    \begin{macrocode}
-\__kernel_patch:nnNNpn { \__kernel_chk_var_scope:NN c #1 } { }
-\cs_new_protected:Npn \bool_const:Nn #1#2
-  {
-    \__kernel_chk_if_free_cs:N #1
-    \tex_global:D \tex_chardef:D #1 = \bool_if_p:n {#2}
-  }
-\cs_generate_variant:Nn \bool_const:Nn { c }
-%    \end{macrocode}
-% \end{macro}
-%
 % \begin{macro}[added = 2018-05-10]
 %   {\bool_set_inverse:N, \bool_set_inverse:c, \bool_gset_inverse:N, \bool_gset_inverse:c}
 %   Set to \texttt{false} or \texttt{true} locally or globally.
diff --git a/l3kernel/l3prg.dtx b/l3kernel/l3prg.dtx
index 29e41e5aa..7a80fa8ea 100644
--- a/l3kernel/l3prg.dtx
+++ b/l3kernel/l3prg.dtx
@@ -252,6 +252,15 @@
 %   \meta{boolean} is initially \texttt{false}.
 % \end{function}
 %
+% \begin{function}[added = 2017-11-28]{\bool_const:Nn, \bool_const:cn}
+%   \begin{syntax}
+%     \cs{bool_const:Nn} \meta{boolean} \Arg{boolexpr}
+%   \end{syntax}
+%   Creates a new constant \meta{boolean} or raises an error if the name
+%   is already taken. The value of the \meta{boolean} is set globally to
+%   the result of evaluating the \meta{boolexpr}.
+% \end{function}
+%
 % \begin{function}
 %   {
 %     \bool_set_false:N , \bool_set_false:c ,
@@ -823,6 +832,19 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \begin{macro}[added = 2017-11-28]{\bool_const:Nn, \bool_const:cn}
+%   A merger between \cs{tl_const:Nn} and \cs{bool_set:Nn}.
+%    \begin{macrocode}
+\__kernel_patch:nnNNpn { \__kernel_chk_var_scope:NN c #1 } { }
+\cs_new_protected:Npn \bool_const:Nn #1#2
+  {
+    \__kernel_chk_if_free_cs:N #1
+    \tex_global:D \tex_chardef:D #1 = \bool_if_p:n {#2}
+  }
+\cs_generate_variant:Nn \bool_const:Nn { c }
+%    \end{macrocode}
+% \end{macro}
+%
 % \begin{macro}
 %   {
 %     \bool_set_true:N,   \bool_set_true:c,
diff --git a/l3kernel/testfiles/m3expl001.luatex.tlg b/l3kernel/testfiles/m3expl001.luatex.tlg
index 512036a75..ad6a8f1a9 100644
--- a/l3kernel/testfiles/m3expl001.luatex.tlg
+++ b/l3kernel/testfiles/m3expl001.luatex.tlg
@@ -1569,6 +1569,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6457,8 +6459,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl001.ptex.tlg b/l3kernel/testfiles/m3expl001.ptex.tlg
index ca022dfdf..8fdea5860 100644
--- a/l3kernel/testfiles/m3expl001.ptex.tlg
+++ b/l3kernel/testfiles/m3expl001.ptex.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6443,8 +6445,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl001.tlg b/l3kernel/testfiles/m3expl001.tlg
index 42568d50a..20751a203 100644
--- a/l3kernel/testfiles/m3expl001.tlg
+++ b/l3kernel/testfiles/m3expl001.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6443,8 +6445,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl001.uptex.tlg b/l3kernel/testfiles/m3expl001.uptex.tlg
index 3a0f8f74f..e0b89455f 100644
--- a/l3kernel/testfiles/m3expl001.uptex.tlg
+++ b/l3kernel/testfiles/m3expl001.uptex.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6439,8 +6441,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index 47337d79e..cbb9bd264 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6447,8 +6449,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl003.luatex.tlg b/l3kernel/testfiles/m3expl003.luatex.tlg
index 512036a75..ad6a8f1a9 100644
--- a/l3kernel/testfiles/m3expl003.luatex.tlg
+++ b/l3kernel/testfiles/m3expl003.luatex.tlg
@@ -1569,6 +1569,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6457,8 +6459,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl003.ptex.tlg b/l3kernel/testfiles/m3expl003.ptex.tlg
index ca022dfdf..8fdea5860 100644
--- a/l3kernel/testfiles/m3expl003.ptex.tlg
+++ b/l3kernel/testfiles/m3expl003.ptex.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6443,8 +6445,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl003.tlg b/l3kernel/testfiles/m3expl003.tlg
index 42568d50a..20751a203 100644
--- a/l3kernel/testfiles/m3expl003.tlg
+++ b/l3kernel/testfiles/m3expl003.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6443,8 +6445,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl003.uptex.tlg b/l3kernel/testfiles/m3expl003.uptex.tlg
index 3a0f8f74f..e0b89455f 100644
--- a/l3kernel/testfiles/m3expl003.uptex.tlg
+++ b/l3kernel/testfiles/m3expl003.uptex.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6439,8 +6441,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index 47337d79e..cbb9bd264 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -1567,6 +1567,8 @@ Defining \if_bool:N on line ...
 Defining \if_predicate:w on line ...
 Defining \bool_new:N on line ...
 Defining \bool_new:c on line ...
+Defining \bool_const:Nn on line ...
+Defining \bool_const:cn on line ...
 Defining \bool_set_true:N on line ...
 Defining \bool_set_false:N on line ...
 Defining \bool_gset_true:N on line ...
@@ -6447,8 +6449,6 @@ Defining \msg_show_item:n on line ...
 Defining \msg_show_item_unbraced:n on line ...
 Defining \msg_show_item:nn on line ...
 Defining \msg_show_item_unbraced:nn on line ...
-Defining \bool_const:Nn on line ...
-Defining \bool_const:cn on line ...
 Defining \bool_set_inverse:N on line ...
 Defining \bool_set_inverse:c on line ...
 Defining \bool_gset_inverse:N on line ...





More information about the latex3-commits mailing list