[latex3-commits] [latex3/latex3] conditional-forms: Add \prg_(new|set|gset)_eq_conditional:NN (9618feae4)
github at latex-project.org
github at latex-project.org
Sun Nov 24 10:08:48 CET 2024
Repository : https://github.com/latex3/latex3
On branch : conditional-forms
Link : https://github.com/latex3/latex3/commit/9618feae43e07e85ae9b77feab07fc301563415b
>---------------------------------------------------------------
commit 9618feae43e07e85ae9b77feab07fc301563415b
Author: Joseph Wright <joseph at texdev.net>
Date: Thu Nov 21 18:22:37 2024 +0000
Add \prg_(new|set|gset)_eq_conditional:NN
Deprecation of \prg_(new|set|gset)_eq_conditional:NNn is left for a subsequent commit.
>---------------------------------------------------------------
9618feae43e07e85ae9b77feab07fc301563415b
l3kernel/CHANGELOG.md | 1 +
l3kernel/l3basics.dtx | 33 +++++++++++++++++++++++----------
l3kernel/l3bitset.dtx | 6 ++----
l3kernel/l3box.dtx | 6 ++----
l3kernel/l3cctab.dtx | 6 ++----
l3kernel/l3clist.dtx | 12 ++++--------
l3kernel/l3flag.dtx | 6 ++----
l3kernel/l3fp-logic.dtx | 4 ++--
l3kernel/l3fparray.dtx | 6 ++----
l3kernel/l3int.dtx | 6 ++----
l3kernel/l3intarray.dtx | 6 ++----
l3kernel/l3prg.dtx | 20 ++++++++++++++++----
l3kernel/l3prop.dtx | 6 ++----
l3kernel/l3seq.dtx | 18 ++++++++----------
l3kernel/l3skip.dtx | 18 ++++++------------
l3kernel/l3str.dtx | 15 +++++----------
l3kernel/l3tl.dtx | 6 +++---
l3kernel/l3token.dtx | 3 +--
l3trial/l3bigint/l3bigint.dtx | 4 ++--
l3trial/l3check/l3check.dtx | 4 ++--
l3trial/l3tree/l3tree.dtx | 3 +--
21 files changed, 90 insertions(+), 99 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index baf787182..d0ccd365f 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers.
### Added
- `\bitset_use:N` and `\clist_use:N`: this clarifies that bitsets and clists
can be used with `V`-type expansion
+- `\prg_(new|set|gset)_eq_conditional:NN`
- `\sys_if_engine_opentype:(TF)`
### Changed
diff --git a/l3kernel/l3basics.dtx b/l3kernel/l3basics.dtx
index 4a9d60f18..16e1673bd 100644
--- a/l3kernel/l3basics.dtx
+++ b/l3kernel/l3basics.dtx
@@ -2182,25 +2182,37 @@
%
% \begin{macro}
% {
+% \prg_set_eq_conditional:NN ,
+% \prg_gset_eq_conditional:NN,
+% \prg_new_eq_conditional:NN
+% }
+% \begin{macro}
+% {
% \prg_set_eq_conditional:NNn ,
% \prg_gset_eq_conditional:NNn,
% \prg_new_eq_conditional:NNn
% }
-% \begin{macro}{\@@_set_eq_conditional:NNNn}
+% \begin{macro}{\@@_set_eq_conditional:NNN}
% The setting-equal functions. Split both functions and feed
-% \Arg{name_1} \Arg{signature_1} \meta{boolean_1}
-% \Arg{name_2} \Arg{signature_2} \meta{boolean_2}
+% \Arg{name_1} \Arg{signature_1}
+% \Arg{name_2} \Arg{signature_2}
% \meta{copying~function} \meta{conditions} |,| \cs{q_@@_recursion_tail}
% |,| \cs{q_@@_recursion_stop}
% to a first auxiliary.
% \begin{macrocode}
-\cs_gset_protected:Npn \prg_set_eq_conditional:NNn
- { \@@_set_eq_conditional:NNNn \cs_set_eq:cc }
-\cs_gset_protected:Npn \prg_gset_eq_conditional:NNn
- { \@@_set_eq_conditional:NNNn \cs_gset_eq:cc }
-\cs_gset_protected:Npn \prg_new_eq_conditional:NNn
- { \@@_set_eq_conditional:NNNn \cs_new_eq:cc }
-\cs_gset_protected:Npn \@@_set_eq_conditional:NNNn #1#2#3#4
+\cs_gset_protected:Npn \prg_set_eq_conditional:NN
+ { \@@_set_eq_conditional:NNN \cs_set_eq:cc }
+\cs_gset_protected:Npn \prg_gset_eq_conditional:NN
+ { \@@_set_eq_conditional:NNN \cs_gset_eq:cc }
+\cs_gset_protected:Npn \prg_new_eq_conditional:NN
+ { \@@_set_eq_conditional:NNN \cs_new_eq:cc }
+\cs_gset_protected:Npn \prg_set_eq_conditional:NNn #1#2#3
+ { \@@_set_eq_conditional:NNN \cs_set_eq:cc #1 #2 }
+\cs_gset_protected:Npn \prg_gset_eq_conditional:NNn #1#2#3
+ { \@@_set_eq_conditional:NNN \cs_gset_eq:cc #1 #2 }
+\cs_gset_protected:Npn \prg_new_eq_conditional:NNn #1#2#3
+ { \@@_set_eq_conditional:NNN \cs_new_eq:cc #1 #2 }
+\cs_gset_protected:Npn \@@_set_eq_conditional:NNN #1#2#3
{
\use:e
{
@@ -2215,6 +2227,7 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \end{macro}
%
% \begin{macro}
% {
diff --git a/l3kernel/l3bitset.dtx b/l3kernel/l3bitset.dtx
index c5aa56623..eeaaa0280 100644
--- a/l3kernel/l3bitset.dtx
+++ b/l3kernel/l3bitset.dtx
@@ -353,10 +353,8 @@
% }
% Existence tests.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn
- \bitset_if_exist:N \str_if_exist:N { p , T , F , TF }
-\prg_new_eq_conditional:NNn
- \bitset_if_exist:c \str_if_exist:c { p , T , F , TF }
+\prg_new_eq_conditional:NN \bitset_if_exist:N \str_if_exist:N
+\prg_new_eq_conditional:NN \bitset_if_exist:c \str_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3box.dtx b/l3kernel/l3box.dtx
index 649910496..a06f28212 100644
--- a/l3kernel/l3box.dtx
+++ b/l3kernel/l3box.dtx
@@ -1112,10 +1112,8 @@
% \begin{macro}[pTF]{\box_if_exist:N, \box_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \box_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \box_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \box_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \box_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3cctab.dtx b/l3kernel/l3cctab.dtx
index 476d15623..5ca1c1912 100644
--- a/l3kernel/l3cctab.dtx
+++ b/l3kernel/l3cctab.dtx
@@ -740,10 +740,8 @@
% \begin{macro}[pTF]{\cctab_if_exist:N,\cctab_if_exist:c}
% Checks whether a \meta{cctab~var} is defined.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \cctab_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \cctab_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \cctab_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \cctab_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3clist.dtx b/l3kernel/l3clist.dtx
index 1dbd9d1af..478b5d8c3 100644
--- a/l3kernel/l3clist.dtx
+++ b/l3kernel/l3clist.dtx
@@ -1147,10 +1147,8 @@
% \begin{macro}[pTF]{\clist_if_exist:N, \clist_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \clist_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \clist_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \clist_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \clist_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
@@ -1603,10 +1601,8 @@
% \UnitTested
% Simple copies from the token list variable material.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \clist_if_empty:N \tl_if_empty:N
- { p , T , F , TF }
-\prg_new_eq_conditional:NNn \clist_if_empty:c \tl_if_empty:c
- { p , T , F , TF }
+\prg_new_eq_conditional:NN \clist_if_empty:N \tl_if_empty:N
+\prg_new_eq_conditional:NN \clist_if_empty:c \tl_if_empty:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3flag.dtx b/l3kernel/l3flag.dtx
index 7741a9b0d..b6a60f550 100644
--- a/l3kernel/l3flag.dtx
+++ b/l3kernel/l3flag.dtx
@@ -275,10 +275,8 @@
% \begin{macro}[EXP, pTF]{\flag_if_exist:N, \flag_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \flag_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \flag_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \flag_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \flag_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3fp-logic.dtx b/l3kernel/l3fp-logic.dtx
index baa08b421..a81701d70 100644
--- a/l3kernel/l3fp-logic.dtx
+++ b/l3kernel/l3fp-logic.dtx
@@ -90,8 +90,8 @@
% \begin{macro}[pTF]{\fp_if_exist:N, \fp_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \fp_if_exist:N \cs_if_exist:N { TF , T , F , p }
-\prg_new_eq_conditional:NNn \fp_if_exist:c \cs_if_exist:c { TF , T , F , p }
+\prg_new_eq_conditional:NN \fp_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \fp_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3fparray.dtx b/l3kernel/l3fparray.dtx
index 52b91d129..8eb48e632 100644
--- a/l3kernel/l3fparray.dtx
+++ b/l3kernel/l3fparray.dtx
@@ -411,10 +411,8 @@
% \begin{macro}[pTF]{\fparray_if_exist:N, \fparray_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \fparray_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \fparray_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \fparray_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \fparray_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3int.dtx b/l3kernel/l3int.dtx
index 7f3399429..d1cd09f53 100644
--- a/l3kernel/l3int.dtx
+++ b/l3kernel/l3int.dtx
@@ -1408,10 +1408,8 @@
% \begin{macro}[pTF]{\int_if_exist:N, \int_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \int_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \int_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \int_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \int_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3intarray.dtx b/l3kernel/l3intarray.dtx
index 9a9a5d64e..f430f7bbd 100644
--- a/l3kernel/l3intarray.dtx
+++ b/l3kernel/l3intarray.dtx
@@ -936,10 +936,8 @@ luacmd('@@_gset_range:w', function()
% \begin{macro}[pTF]{\intarray_if_exist:N, \intarray_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \intarray_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \intarray_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \intarray_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \intarray_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3prg.dtx b/l3kernel/l3prg.dtx
index f19850dbe..8b8b69414 100644
--- a/l3kernel/l3prg.dtx
+++ b/l3kernel/l3prg.dtx
@@ -174,6 +174,20 @@
% \cs{prg_return_true:} \cs{else:} \cs{prg_return_false:} \cs{fi:} is
% optimized.
%
+% \begin{function}[added = 2024-11-21]
+% {
+% \prg_new_eq_conditional:NN,
+% \prg_set_eq_conditional:NN,
+% \prg_gset_eq_conditional:NN
+% }
+% \begin{syntax}
+% \cs{prg_new_eq_conditional:NN} \cs[no-index]{\meta{name_1}:\meta{arg spec}} \cs[no-index]{\meta{name_2}:\meta{arg spec}}
+% \end{syntax}
+% These functions copy a family of conditionals. The \texttt{new} version
+% checks for existing definitions (\emph{cf.}~\cs{cs_new_eq:NN}) whereas
+% the \texttt{set} version does not (\emph{cf.}~\cs{cs_set_eq:NN}).
+% \end{function}
+%
% \begin{function}[updated = 2024-11-20]
% {
% \prg_new_eq_conditional:NNn,
@@ -1117,10 +1131,8 @@
% \begin{macro}[pTF]{\bool_if_exist:N, \bool_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \bool_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \bool_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \bool_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \bool_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index 47cd52320..6b04dfc32 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -2143,10 +2143,8 @@
% \begin{macro}[pTF, tested = m3prop004]{\prop_if_exist:N, \prop_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \prop_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \prop_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \prop_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \prop_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3seq.dtx b/l3kernel/l3seq.dtx
index 120081197..90c107560 100644
--- a/l3kernel/l3seq.dtx
+++ b/l3kernel/l3seq.dtx
@@ -1432,10 +1432,8 @@
% \begin{macro}[pTF]{\seq_if_exist:N, \seq_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \seq_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \seq_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \seq_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \seq_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
@@ -2613,12 +2611,12 @@
% \begin{macro}[TF]{\seq_gpop:NN, \seq_gpop:cN}
% More copies.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \seq_get:NN \seq_get_left:NN { T , F , TF }
-\prg_new_eq_conditional:NNn \seq_get:cN \seq_get_left:cN { T , F , TF }
-\prg_new_eq_conditional:NNn \seq_pop:NN \seq_pop_left:NN { T , F , TF }
-\prg_new_eq_conditional:NNn \seq_pop:cN \seq_pop_left:cN { T , F , TF }
-\prg_new_eq_conditional:NNn \seq_gpop:NN \seq_gpop_left:NN { T , F , TF }
-\prg_new_eq_conditional:NNn \seq_gpop:cN \seq_gpop_left:cN { T , F , TF }
+\prg_new_eq_conditional:NN \seq_get:NN \seq_get_left:NN
+\prg_new_eq_conditional:NN \seq_get:cN \seq_get_left:cN
+\prg_new_eq_conditional:NN \seq_pop:NN \seq_pop_left:NN
+\prg_new_eq_conditional:NN \seq_pop:cN \seq_pop_left:cN
+\prg_new_eq_conditional:NN \seq_gpop:NN \seq_gpop_left:NN
+\prg_new_eq_conditional:NN \seq_gpop:cN \seq_gpop_left:cN
% \end{macrocode}
% \end{macro}
% \end{macro}
diff --git a/l3kernel/l3skip.dtx b/l3kernel/l3skip.dtx
index 0c9ba2153..4bf936eb9 100644
--- a/l3kernel/l3skip.dtx
+++ b/l3kernel/l3skip.dtx
@@ -1250,10 +1250,8 @@
% \begin{macro}[pTF]{\dim_if_exist:N, \dim_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \dim_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \dim_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \dim_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \dim_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
@@ -2213,10 +2211,8 @@
% \begin{macro}[pTF]{\skip_if_exist:N, \skip_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \skip_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \skip_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \skip_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \skip_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
@@ -2464,10 +2460,8 @@
% \begin{macro}[pTF]{\muskip_if_exist:N, \muskip_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \muskip_if_exist:N \cs_if_exist:N
- { TF , T , F , p }
-\prg_new_eq_conditional:NNn \muskip_if_exist:c \cs_if_exist:c
- { TF , T , F , p }
+\prg_new_eq_conditional:NN \muskip_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \muskip_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3str.dtx b/l3kernel/l3str.dtx
index 94a74b17d..d369fdde5 100644
--- a/l3kernel/l3str.dtx
+++ b/l3kernel/l3str.dtx
@@ -1144,16 +1144,11 @@
% }
% More copy-paste!
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \str_if_exist:N \tl_if_exist:N
- { p , T , F , TF }
-\prg_new_eq_conditional:NNn \str_if_exist:c \tl_if_exist:c
- { p , T , F , TF }
-\prg_new_eq_conditional:NNn \str_if_empty:N \tl_if_empty:N
- { p , T , F , TF }
-\prg_new_eq_conditional:NNn \str_if_empty:c \tl_if_empty:c
- { p , T , F , TF }
-\prg_new_eq_conditional:NNn \str_if_empty:n \tl_if_empty:n
- { p , T , F , TF }
+\prg_new_eq_conditional:NN \str_if_exist:N \tl_if_exist:N
+\prg_new_eq_conditional:NN \str_if_exist:c \tl_if_exist:c
+\prg_new_eq_conditional:NN \str_if_empty:N \tl_if_empty:N
+\prg_new_eq_conditional:NN \str_if_empty:c \tl_if_empty:c
+\prg_new_eq_conditional:NN \str_if_empty:n \tl_if_empty:n
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx
index 3d08f2354..1b8609297 100644
--- a/l3kernel/l3tl.dtx
+++ b/l3kernel/l3tl.dtx
@@ -1466,8 +1466,8 @@
% \begin{macro}[pTF]{\tl_if_exist:N, \tl_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \tl_if_exist:N \cs_if_exist:N { TF , T , F , p }
-\prg_new_eq_conditional:NNn \tl_if_exist:c \cs_if_exist:c { TF , T , F , p }
+\prg_new_eq_conditional:NN \tl_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \tl_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
@@ -2398,7 +2398,7 @@
% Returns \cs{c_true_bool} if and only if the two token list variables are
% equal.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \tl_if_eq:NN \cs_if_eq:NN { p , T , F , TF }
+\prg_new_eq_conditional:NN \tl_if_eq:NN \cs_if_eq:NN
\prg_generate_conditional_variant:Nnn \tl_if_eq:NN
{ Nc , c , cc } { p , TF , T , F }
% \end{macrocode}
diff --git a/l3kernel/l3token.dtx b/l3kernel/l3token.dtx
index 5c0489299..75351a940 100644
--- a/l3kernel/l3token.dtx
+++ b/l3kernel/l3token.dtx
@@ -1984,8 +1984,7 @@
% \begin{macro}[pTF]{\token_if_eq_meaning:NN}
% Check if the tokens |#1| and |#2| have same meaning.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \token_if_eq_meaning:NN \cs_if_eq:NN
- { p , T , F , TF }
+\prg_new_eq_conditional:NN \token_if_eq_meaning:NN \cs_if_eq:NN
% \end{macrocode}
% \end{macro}
%
diff --git a/l3trial/l3bigint/l3bigint.dtx b/l3trial/l3bigint/l3bigint.dtx
index db35c2710..134337dca 100644
--- a/l3trial/l3bigint/l3bigint.dtx
+++ b/l3trial/l3bigint/l3bigint.dtx
@@ -2372,8 +2372,8 @@
% \begin{macro}[pTF]{\bigint_if_exist:N, \bigint_if_exist:c}
% Copies of the \texttt{cs} functions defined in \pkg{l3basics}.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \bigint_if_exist:N \cs_if_exist:N { TF , T , F , p }
-\prg_new_eq_conditional:NNn \bigint_if_exist:c \cs_if_exist:c { TF , T , F , p }
+\prg_new_eq_conditional:NN \bigint_if_exist:N \cs_if_exist:N
+\prg_new_eq_conditional:NN \bigint_if_exist:c \cs_if_exist:c
% \end{macrocode}
% \end{macro}
%
diff --git a/l3trial/l3check/l3check.dtx b/l3trial/l3check/l3check.dtx
index 8b64aba13..c1bc26c39 100644
--- a/l3trial/l3check/l3check.dtx
+++ b/l3trial/l3check/l3check.dtx
@@ -1278,7 +1278,7 @@
% which we just check that the first argument is N-type and is a
% function (the |:| is crucial to place |_p|), and for the |:Nnn|-type
% case, that the first argument is a function with an appropriate
-% signature. Also patch the |\prg_(set/new)_eq_conditional:NNn| to
+% signature. Also patch the |\prg_(set/new)_eq_conditional:NN| to
% check that the N-type arguments are functions.
% \begin{macrocode}
\group_begin:
@@ -1302,7 +1302,7 @@
{
\tl_map_inline:nn { { } {_protected} }
{ \check_tmp:w {#1} {##1} }
- \check_patch:cn { prg_#1_eq_conditional:NNn }
+ \check_patch:cn { prg_#1_eq_conditional:NN }
{
\check_is_function:N ##1
\check_is_function:N ##2
diff --git a/l3trial/l3tree/l3tree.dtx b/l3trial/l3tree/l3tree.dtx
index a5e2b8ce1..6a9baa393 100644
--- a/l3trial/l3tree/l3tree.dtx
+++ b/l3trial/l3tree/l3tree.dtx
@@ -250,8 +250,7 @@
% \begin{macro}[pTF, EXP]{\tree_if_empty:N}
% Test whether a tree is empty, \emph{i.e.}, contains no node at all.
% \begin{macrocode}
-\prg_new_eq_conditional:NNn \tree_if_empty:N
- \box_if_empty:N { p , T , F , TF }
+\prg_new_eq_conditional:NN \tree_if_empty:N \box_if_empty:N
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.