[latex3-commits] [latex3/latex3] main: Copy some defs (see #1071) (72b11ef1e)
github at latex-project.org
github at latex-project.org
Tue May 23 09:06:15 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/72b11ef1ebe0e24c024d48e4d80cdc82228343b7
>---------------------------------------------------------------
commit 72b11ef1ebe0e24c024d48e4d80cdc82228343b7
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue May 23 08:06:15 2023 +0100
Copy some defs (see #1071)
>---------------------------------------------------------------
72b11ef1ebe0e24c024d48e4d80cdc82228343b7
l3kernel/l3tl.dtx | 9 +--------
l3kernel/l3token.dtx | 7 ++-----
2 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx
index 1e113ee3b..79350555d 100644
--- a/l3kernel/l3tl.dtx
+++ b/l3kernel/l3tl.dtx
@@ -2234,14 +2234,7 @@
% Returns \cs{c_true_bool} if and only if the two token list variables are
% equal.
% \begin{macrocode}
-\prg_new_conditional:Npnn \tl_if_eq:NN #1#2 { p , T , F , TF }
- {
- \if_meaning:w #1 #2
- \prg_return_true:
- \else:
- \prg_return_false:
- \fi:
- }
+\prg_new_eq_conditional:NNn \tl_if_eq:NN \cs_if_eq:NN { p , T , F , TF }
\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 d8eeca44a..ef04596e1 100644
--- a/l3kernel/l3token.dtx
+++ b/l3kernel/l3token.dtx
@@ -2071,11 +2071,8 @@
% \begin{macro}[pTF]{\token_if_eq_meaning:NN}
% Check if the tokens |#1| and |#2| have same meaning.
% \begin{macrocode}
-\prg_new_conditional:Npnn \token_if_eq_meaning:NN #1#2 { p , T , F , TF }
- {
- \if_meaning:w #1 #2
- \prg_return_true: \else: \prg_return_false: \fi:
- }
+\prg_new_eq_conditional:NNn \token_if_eq_meaning:NN \cs_if_eq:NN
+ { p , T , F , TF }
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.