[latex3-commits] [l3svn] 02/02: Replace 'symbol' numbers with explicit ones

noreply at latex-project.org noreply at latex-project.org
Wed Dec 7 20:11:16 CET 2016


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 544592f52b75ba7b7db3223854bdaaf24048d6f4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Dec 7 11:06:54 2016 +0000

    Replace 'symbol' numbers with explicit ones
    
    As discussed elsewhere, the 'named' versions for simple numbers
    are not that helpful today. Where there is a meaning to the
    constant things are different.
---
 l3kernel/l3alloc.dtx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/l3kernel/l3alloc.dtx b/l3kernel/l3alloc.dtx
index e3dda73..a313949 100644
--- a/l3kernel/l3alloc.dtx
+++ b/l3kernel/l3alloc.dtx
@@ -185,12 +185,12 @@
 %   makes sense to collect most of them together here.
 %    \begin{macrocode}
 \cs_if_exist:NTF \luatex_luatexversion:D
-  { \@@_new:nnnN { box } \c_zero \c_max_register_int \tex_chardef:D }
-  { \@@_new:nnnN { box } \c_zero \c_max_register_int \tex_mathchardef:D }
-\@@_new:nnnN { dim }     \c_zero \c_max_register_int \tex_dimendef:D
-\@@_new:nnnN { int }    { 10 }   \c_max_register_int \tex_countdef:D
-\@@_new:nnnN { muskip } \c_zero  \c_max_register_int \tex_muskipdef:D
-\@@_new:nnnN { skip }   \c_zero  \c_max_register_int \tex_skipdef:D
+  { \@@_new:nnnN { box } { 0 } \c_max_register_int \tex_chardef:D }
+  { \@@_new:nnnN { box } { 0 } \c_max_register_int \tex_mathchardef:D }
+\@@_new:nnnN { dim }     { 0 } \c_max_register_int \tex_dimendef:D
+\@@_new:nnnN { int }    { 10 } \c_max_register_int \tex_countdef:D
+\@@_new:nnnN { muskip }  { 0 } \c_max_register_int \tex_muskipdef:D
+\@@_new:nnnN { skip }    { 0 } \c_max_register_int \tex_skipdef:D
 %    \end{macrocode}
 % \end{macro}
 %
@@ -254,14 +254,14 @@
             \tl_if_exist:cTF { c__ #1 _allocation_reserve_begin_tl }
               {
                 \int_compare:nNnTF
-                  { \tl_use:c { g__ #1 _allocation_tl } + \c_one }
+                  { \tl_use:c { g__ #1 _allocation_tl } + 1 }
                   =
                   { \tl_use:c { c__ #1 _allocation_reserve_begin_tl } }
                   { \tl_use:c { c__ #1 _allocation_reserve_end_tl } }
                   { \tl_use:c { g__ #1 _allocation_tl } }
               }
               { \tl_use:c { g__ #1 _allocation_tl } }
-            + \c_one
+            + 1
           }
       }
   }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list