[latex3-commits] [git/LaTeX3-latex3-latex3] master: Use \int_eval:n rather than l3int internals (23edd70)

Bruno Le Floch bruno at le-floch.fr
Tue Apr 3 06:22:59 CEST 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/23edd70e133dc942b7bea79125727173ad17b71f

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

commit 23edd70e133dc942b7bea79125727173ad17b71f
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Tue Apr 3 00:22:59 2018 -0400

    Use \int_eval:n rather than l3int internals
    
    This allows us to move \int_rand:nn to l3fp if we want.


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

23edd70e133dc942b7bea79125727173ad17b71f
 l3kernel/l3candidates.dtx |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 6637438..a1e5fe7 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -2024,16 +2024,11 @@
 %    \begin{macrocode}
 \cs_if_exist:NTF \pdftex_uniformdeviate:D
   {
-    \__kernel_patch_args:nNNpn
-      {
-        { \__kernel_chk_expr:nNnN {#1} \@@_eval:w { } \int_rand:nn }
-        { \__kernel_chk_expr:nNnN {#2} \@@_eval:w { } \int_rand:nn }
-      }
     \cs_new:Npn \int_rand:nn #1#2
       {
         \exp_after:wN \@@_rand:ww
-        \@@_value:w \@@_eval:w #1 \exp_after:wN ;
-        \@@_value:w \@@_eval:w #2 ;
+        \@@_value:w \int_eval:n {#1} \exp_after:wN ;
+        \@@_value:w \int_eval:n {#2} ;
       }
     \cs_new:Npn \@@_rand:ww #1; #2;
       {





More information about the latex3-commits mailing list