[latex3-commits] [git/latex3] master: l3benchmark: oops, forgot to make these variables private (0a1967a)

Will Robertson wspr81 at gmail.com
Thu Jan 4 09:35:59 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/0a1967a33a387fd8a5b30a00a65947b5704333f3

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

commit 0a1967a33a387fd8a5b30a00a65947b5704333f3
Author: Will Robertson <wspr81 at gmail.com>
Date:   Thu Jan 4 16:35:59 2018 +0800

    l3benchmark: oops, forgot to make these variables private


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

0a1967a33a387fd8a5b30a00a65947b5704333f3
 l3trial/l3benchmark/l3benchmark.dtx              |   32 +++++++++++-----------
 l3trial/l3benchmark/testfiles/m3benchmark001.tlg |    2 +-
 2 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/l3trial/l3benchmark/l3benchmark.dtx b/l3trial/l3benchmark/l3benchmark.dtx
index 4b1bcfa..6149683 100644
--- a/l3trial/l3benchmark/l3benchmark.dtx
+++ b/l3trial/l3benchmark/l3benchmark.dtx
@@ -503,28 +503,28 @@
 %
 % \begin{macro}{\benchmark_tic:}
 %    \begin{macrocode}
-\int_new:N \g_tictoc_int
-\seq_new:N \g_tictoc_seq
+\int_new:N \g_@@_tictoc_int
+\seq_new:N \g_@@_tictoc_seq
 %    \end{macrocode}
 %
 %    \begin{macrocode}
 \cs_new_protected:Npn \benchmark_tic:
   {
-    \int_compare:nTF { \g_tictoc_int == 0 }
+    \int_compare:nTF { \g_@@_tictoc_int == 0 }
       {
         \clock_zero:
-        \tl_set:Nn \l_tictoc_pop_tl {0}
+        \tl_set:Nn \l_@@_tictoc_pop_tl {0}
       }
       {
-        \clock_get:N \l_tictoc_pop_tl
+        \clock_get:N \l_@@_tictoc_pop_tl
       }
 
-    \seq_put_right:NV \g_tictoc_seq \l_tictoc_pop_tl
-    \int_gincr:N \g_tictoc_int
+    \seq_put_right:NV \g_@@_tictoc_seq \l_@@_tictoc_pop_tl
+    \int_gincr:N \g_@@_tictoc_int
 
     \iow_term:x
       {
-        \prg_replicate:nn {\g_tictoc_int} {---+} \space
+        \prg_replicate:nn {\g_@@_tictoc_int} {---+} \space
         TIC
       }
   }
@@ -535,28 +535,28 @@
 %    \begin{macrocode}
 \cs_set:Npn \benchmark_toc:
   {
-    \int_compare:nT { \g_tictoc_int == 0 }
+    \int_compare:nT { \g_@@_tictoc_int == 0 }
       {
         \msg_error:nn {benchmark} {toc-first}
       }
 
-    \seq_pop_right:NN \g_tictoc_seq \l_tictoc_pop_tl
-    \clock_get:N \l_tictoc_curr_tl
+    \seq_pop_right:NN \g_@@_tictoc_seq \l_@@_tictoc_pop_tl
+    \clock_get:N \l_@@_tictoc_curr_tl
 
-    \tl_set:Nx \l_tictoc_tl
+    \tl_set:Nx \l_@@_tictoc_tl
       {
         \fp_to_decimal:n
-          { round( \l_tictoc_curr_tl - \l_tictoc_pop_tl , 3 )}
+          { round( \l_@@_tictoc_curr_tl - \l_@@_tictoc_pop_tl , 3 )}
       }
 
     \iow_term:x
       {
-        \prg_replicate:nn {\g_tictoc_int} {---+} \space
+        \prg_replicate:nn {\g_@@_tictoc_int} {---+} \space
         TOC: \space
-        \l_tictoc_tl \space s
+        \l_@@_tictoc_tl \space s
       }
 
-    \int_gdecr:N \g_tictoc_int
+    \int_gdecr:N \g_@@_tictoc_int
   }
 %    \end{macrocode}
 %
diff --git a/l3trial/l3benchmark/testfiles/m3benchmark001.tlg b/l3trial/l3benchmark/testfiles/m3benchmark001.tlg
index 9ebfaa6..22ab656 100644
--- a/l3trial/l3benchmark/testfiles/m3benchmark001.tlg
+++ b/l3trial/l3benchmark/testfiles/m3benchmark001.tlg
@@ -2,5 +2,5 @@ This is a generated file for the LaTeX (2e + expl3) validation system.
 Don't change this file in any respect.
 (l3benchmark.sty
 \l__benchmark_repeat_int=\count...
-\g_tictoc_int=\count...
+\g__benchmark_tictoc_int=\count...
 )





More information about the latex3-commits mailing list