[latex3-commits] [l3svn] 01/03: Use public interfaces for \ifodd

noreply at latex-project.org noreply at latex-project.org
Fri Aug 21 17:35:04 CEST 2015


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

joseph pushed a commit to branch master
in repository l3svn.

commit 4fc92cd820359200cc18318cd40244b6ea78d1ee
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Aug 21 16:32:11 2015 +0100

    Use public interfaces for \ifodd
    
    These were probably copy-pasted from code earlier in the bootstrap
    process, but for these cases we have \if_bool:N, which seems most
    appropriate.
---
 l3kernel/l3msg.dtx |    2 +-
 l3kernel/l3prg.dtx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index 404cdbf..521e5fa 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -860,7 +860,7 @@
       }
   }
 %<*package>
-\tex_ifodd:D \l at expl@log at functions@bool
+\if_bool:N \l at expl@log at functions@bool
   \cs_gset_protected:Npn \__chk_if_free_msg:nn #1#2
     {
       \msg_if_exist:nnT {#1} {#2}
diff --git a/l3kernel/l3prg.dtx b/l3kernel/l3prg.dtx
index 27edf96..4d39b8f 100644
--- a/l3kernel/l3prg.dtx
+++ b/l3kernel/l3prg.dtx
@@ -794,7 +794,7 @@
 %  code complements similar material in \pkg{l3tl}.
 %    \begin{macrocode}
 %<*package>
-\tex_ifodd:D \l at expl@check at declarations@bool
+\if_bool:N \l at expl@check at declarations@bool
   \cs_set_protected:Npn \bool_set_true:N #1
     {
       \__chk_if_exist_var:N #1
@@ -835,7 +835,7 @@
       \__chk_if_exist_var:N #1
       \tex_global:D \tex_chardef:D #1 = \bool_if_p:n {#2}
     }
-\tex_fi:D
+\fi:
 %</package>
 %    \end{macrocode}
 %

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


More information about the latex3-commits mailing list