[latex3-commits] [git/LaTeX3-latex3-latex3] cs-delimited-args: Less argument throwing-around (abbc9f928)

PhelypeOleinik tex.phelype at gmail.com
Wed Feb 26 17:41:20 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : cs-delimited-args
Link       : https://github.com/latex3/latex3/commit/abbc9f928dc958a57a9230343428d4249caff366

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

commit abbc9f928dc958a57a9230343428d4249caff366
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Wed Feb 26 13:41:20 2020 -0300

    Less argument throwing-around


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

abbc9f928dc958a57a9230343428d4249caff366
 l3packages/xparse/xparse.dtx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index 4ce117448..18f43242d 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -4407,11 +4407,11 @@
     \peek_meaning:NTF #2
       {
         \token_if_eq_meaning:NNTF #2 \c_group_begin_token
-          { \@@_peek_true_remove:NNw #1 \l__xparse_tmpa_tl }
+          { \@@_peek_true_remove:Nw #1 }
           {
             \@@_token_if_cs:NTF #2
               { \@@_peek_cs_check_equal:NNN #1 #2 }
-              { \@@_peek_true_remove:NNw #1 \l__xparse_tmpa_tl }
+              { \@@_peek_true_remove:Nw #1 }
           }
       }
       { \l_@@_tmpb_tl }
@@ -4419,18 +4419,18 @@
 \cs_new_protected:Npn \@@_peek_cs_check_equal:NNN #1#2#3
   {
     \str_if_eq:nnTF {#2} {#3}
-      { \@@_peek_true_remove:NNw #1 \l_@@_tmpa_tl }
+      { \@@_peek_true_remove:Nw #1 }
       { \l_@@_tmpb_tl }
     #3
   }
-\cs_new_protected:Npn \@@_peek_true_remove:NNw #1 #2
+\cs_new_protected:Npn \@@_peek_true_remove:Nw #1
   {
     \bool_if:NTF #1
       {
-        \tex_afterassignment:D #2
+        \tex_afterassignment:D \l_@@_tmpa_tl
         \cs_set_eq:NN \@@_tmp:w
       }
-      {#2}
+      { \l_@@_tmpa_tl }
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.