[latex3-commits] [l3svn] r6089 - use \tex_the:D directly for definition of \use_dim:c etc
noreply at latex-project.org
noreply at latex-project.org
Fri Sep 25 15:29:50 CEST 2015
Author: mittelba
Date: 2015-09-25 15:29:50 +0200 (Fri, 25 Sep 2015)
New Revision: 6089
Modified:
trunk/l3kernel/l3int.dtx
trunk/l3kernel/l3skip.dtx
Log:
use \tex_the:D directly for definition of \use_dim:c etc
Modified: trunk/l3kernel/l3int.dtx
===================================================================
--- trunk/l3kernel/l3int.dtx 2015-09-25 11:30:42 UTC (rev 6088)
+++ trunk/l3kernel/l3int.dtx 2015-09-25 13:29:50 UTC (rev 6089)
@@ -1347,8 +1347,12 @@
% Here is how counters are accessed:
% \begin{macrocode}
\cs_new_eq:NN \int_use:N \tex_the:D
-\cs_new:Npn \int_use:c #1 { \int_use:N \cs:w #1 \cs_end: }
% \end{macrocode}
+% We hand-code this for some speed gain:
+% \begin{macrocode}
+%\cs_generate_variant:Nn \int_use:N { c }
+\cs_new:Npn \int_use:c #1 { \tex_the:D \cs:w #1 \cs_end: }
+% \end{macrocode}
% \end{macro}
%
% \subsection{Integer expression conditionals}
Modified: trunk/l3kernel/l3skip.dtx
===================================================================
--- trunk/l3kernel/l3skip.dtx 2015-09-25 11:30:42 UTC (rev 6088)
+++ trunk/l3kernel/l3skip.dtx 2015-09-25 13:29:50 UTC (rev 6089)
@@ -1409,8 +1409,12 @@
% Accessing a \meta{dim}.
% \begin{macrocode}
\cs_new_eq:NN \dim_use:N \tex_the:D
-\cs_generate_variant:Nn \dim_use:N { c }
% \end{macrocode}
+% We hand-code this for some speed gain:
+% \begin{macrocode}
+%\cs_generate_variant:Nn \dim_use:N { c }
+\cs_new:Npn \dim_use:c #1 { \tex_the:D \cs:w #1 \cs_end: }
+% \end{macrocode}
% \end{macro}
%
% \begin{macro}[EXP]{\dim_to_decimal:n}
@@ -1700,7 +1704,8 @@
% Accessing a \meta{skip}.
% \begin{macrocode}
\cs_new_eq:NN \skip_use:N \tex_the:D
-\cs_generate_variant:Nn \skip_use:N { c }
+%\cs_generate_variant:Nn \skip_use:N { c }
+\cs_new:Npn \skip_use:c #1 { \tex_the:D \cs:w #1 \cs_end: }
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list