summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3kernel/l3prg.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-08 03:01:09 +0000
committerNorbert Preining <norbert@preining.info>2021-05-08 03:01:09 +0000
commit0f8acc6eb1940c147de1fb17b307dad849cb3915 (patch)
tree396fc6150b43761431485f4e19ee22d376b72922 /macros/latex/contrib/l3kernel/l3prg.dtx
parentc92d9953347e3bdebc5243c67cf012a2f7a60fb6 (diff)
CTAN sync 202105080301
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3prg.dtx')
-rw-r--r--macros/latex/contrib/l3kernel/l3prg.dtx20
1 files changed, 15 insertions, 5 deletions
diff --git a/macros/latex/contrib/l3kernel/l3prg.dtx b/macros/latex/contrib/l3kernel/l3prg.dtx
index e75ab65899..972e417998 100644
--- a/macros/latex/contrib/l3kernel/l3prg.dtx
+++ b/macros/latex/contrib/l3kernel/l3prg.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2021-02-18}
+% \date{Released 2021-05-07}
%
% \maketitle
%
@@ -313,7 +313,7 @@
% based on this result.
% \end{function}
%
-% \begin{function}[added = 2012-02-09, updated = 2015-08-01]{\bool_show:N, \bool_show:c}
+% \begin{function}[added = 2012-02-09, updated = 2021-04-29]{\bool_show:N, \bool_show:c}
% \begin{syntax}
% \cs{bool_show:N} \meta{boolean}
% \end{syntax}
@@ -328,7 +328,7 @@
% terminal.
% \end{function}
%
-% \begin{function}[added = 2014-08-22, updated = 2015-08-03]{\bool_log:N, \bool_log:c}
+% \begin{function}[added = 2014-08-22, updated = 2021-04-29]{\bool_log:N, \bool_log:c}
% \begin{syntax}
% \cs{bool_log:N} \meta{boolean}
% \end{syntax}
@@ -987,7 +987,17 @@
\cs_new_protected:Npn \@@_show:NN #1#2
{
\__kernel_chk_defined:NT #2
- { \exp_args:Nx #1 { \token_to_str:N #2 = \@@_to_str:n {#2} } }
+ {
+ \token_case_meaning:NnF #2
+ {
+ \c_true_bool { \exp_args:Nx #1 { \token_to_str:N #2 = true } }
+ \c_false_bool { \exp_args:Nx #1 { \token_to_str:N #2 = false } }
+ }
+ {
+ \__kernel_msg_error:nnxxx { kernel } { bad-type }
+ { \token_to_str:N #2 } { \token_to_meaning:N #2 } { bool }
+ }
+ }
}
% \end{macrocode}
% \end{macro}
@@ -1540,7 +1550,7 @@
\cs_new:cpn { @@_replicate_first_-:n } #1
{
\exp_end:
- \__kernel_msg_expandable_error:nn { kernel } { negative-replication }
+ \__kernel_msg_expandable_error:nn { prg } { negative-replication }
}
\cs_new:cpn { @@_replicate_first_0:n } #1 { \exp_end: }
\cs_new:cpn { @@_replicate_first_1:n } #1 { \exp_end: #1 }