[latex3-commits] [l3svn] r6947 - Avoid :Nnn form of prg_new_conditional

noreply at latex-project.org noreply at latex-project.org
Fri Feb 17 22:27:18 CET 2017


Author: bruno
Date: 2017-02-17 22:27:18 +0100 (Fri, 17 Feb 2017)
New Revision: 6947

Modified:
   trunk/l3kernel/l3quark.dtx
Log:
Avoid :Nnn form of prg_new_conditional

This form is much slower than :Npnn


Modified: trunk/l3kernel/l3quark.dtx
===================================================================
--- trunk/l3kernel/l3quark.dtx	2017-02-17 21:03:54 UTC (rev 6946)
+++ trunk/l3kernel/l3quark.dtx	2017-02-17 21:27:18 UTC (rev 6947)
@@ -509,7 +509,7 @@
 %   a string like |aabc| instead of a single token.\footnote{It may
 %   still loop in special circumstances however!}
 %    \begin{macrocode}
-\prg_new_conditional:Nnn \quark_if_nil:N { p, T , F , TF }
+\prg_new_conditional:Npnn \quark_if_nil:N #1 { p, T , F , TF }
   {
     \if_meaning:w \q_nil #1
       \prg_return_true:
@@ -517,7 +517,7 @@
       \prg_return_false:
     \fi:
   }
-\prg_new_conditional:Nnn \quark_if_no_value:N { p, T , F , TF }
+\prg_new_conditional:Npnn \quark_if_no_value:N #1 { p, T , F , TF }
   {
     \if_meaning:w \q_no_value #1
       \prg_return_true:
@@ -553,13 +553,13 @@
 %   second case, the result is not empty since the first~|?!| in the
 %   definition of \cs{quark_if_nil:n} stop~|#3|.
 %    \begin{macrocode}
-\prg_new_conditional:Nnn \quark_if_nil:n { p, T , F , TF }
+\prg_new_conditional:Npnn \quark_if_nil:n #1 { p, T , F , TF }
   {
     \__tl_if_empty_return:o
       { \@@_if_nil:w {} #1 {} ? ! \q_nil ? ? ! }
   }
 \cs_new:Npn \@@_if_nil:w #1 \q_nil #2 ? #3 ? ! { #1 #2 }
-\prg_new_conditional:Nnn \quark_if_no_value:n { p, T , F , TF }
+\prg_new_conditional:Npnn \quark_if_no_value:n #1 { p, T , F , TF }
   {
     \__tl_if_empty_return:o
       { \@@_if_no_value:w {} #1 {} ? ! \q_no_value ? ? ! }



More information about the latex3-commits mailing list