[latex3-commits] [l3svn] r6285 - Use \cs_if_exist_use:cF rather than separate test + \use:c

noreply at latex-project.org noreply at latex-project.org
Tue Nov 17 11:15:58 CET 2015


Author: bruno
Date: 2015-11-17 11:15:58 +0100 (Tue, 17 Nov 2015)
New Revision: 6285

Modified:
   trunk/l3packages/xparse/xparse.dtx
Log:
Use \cs_if_exist_use:cF rather than separate test + \use:c

No speed gain, but shorter code which makes it clear that the two complicated
csnames are indeed the same.


Modified: trunk/l3packages/xparse/xparse.dtx
===================================================================
--- trunk/l3packages/xparse/xparse.dtx	2015-11-17 10:10:56 UTC (rev 6284)
+++ trunk/l3packages/xparse/xparse.dtx	2015-11-17 10:15:58 UTC (rev 6285)
@@ -1135,9 +1135,8 @@
   }
 \cs_new_protected:Npn \@@_count_mandatory_aux:N #1
   {
-    \cs_if_free:cTF { @@_count_type_ \token_to_str:N #1 :w }
+    \cs_if_exist_use:cF { @@_count_type_ \token_to_str:N #1 :w }
       { \@@_count_type_m:w }
-      { \use:c { @@_count_type_ \token_to_str:N #1 :w } }
   }
 %    \end{macrocode}
 % \end{macro}



More information about the latex3-commits mailing list