[latex3-commits] [git/LaTeX3-latex3-latex3] master: Rename kernel conditional to have the word "if" (7f0a722)
Bruno Le Floch
bruno at le-floch.fr
Fri Apr 27 16:49:20 CEST 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/7f0a722495eb6bf0357bdb1d97e7705d05cc99a6
>---------------------------------------------------------------
commit 7f0a722495eb6bf0357bdb1d97e7705d05cc99a6
Author: Bruno Le Floch <bruno at le-floch.fr>
Date: Fri Apr 27 09:49:32 2018 -0400
Rename kernel conditional to have the word "if"
>---------------------------------------------------------------
7f0a722495eb6bf0357bdb1d97e7705d05cc99a6
l3kernel/l3basics.dtx | 26 +++++++++++++-------------
l3kernel/l3flag.dtx | 2 +-
l3kernel/l3kernel-functions.dtx | 4 ++--
l3kernel/l3msg.dtx | 2 +-
l3kernel/l3regex.dtx | 4 ++--
l3kernel/l3tl.dtx | 2 +-
6 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/l3kernel/l3basics.dtx b/l3kernel/l3basics.dtx
index b54705b..f61ee75 100644
--- a/l3kernel/l3basics.dtx
+++ b/l3kernel/l3basics.dtx
@@ -1568,7 +1568,7 @@
%<@@=debug>
% \end{macrocode}
%
-% \begin{macro}{\__kernel_debug:TF}
+% \begin{macro}{\__kernel_if_debug:TF}
% A more meaningful test of whether debugging is enabled than messing
% up with guards. We can also more easily change the logic in one
% place then. At present, debugging is disabled in the format and in
@@ -1576,10 +1576,10 @@
% options \texttt{enable-debug}, \texttt{log-functions} or
% \texttt{check-declarations} was given.
% \begin{macrocode}
-\cs_set_protected:Npn \__kernel_debug:TF #1#2 {#2}
+\cs_set_protected:Npn \__kernel_if_debug:TF #1#2 {#2}
%<*package>
\tex_ifodd:D \l at expl@enable at debug@bool
- \cs_set_protected:Npn \__kernel_debug:TF #1#2 {#1}
+ \cs_set_protected:Npn \__kernel_if_debug:TF #1#2 {#1}
\fi:
%</package>
% \end{macrocode}
@@ -1588,7 +1588,7 @@
% \begin{macro}{\debug_on:n, \debug_off:n}
%
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_set_protected:Npn \debug_on:n #1
{
@@ -1631,7 +1631,7 @@
% containing a number of periods. At first begin with the
% \enquote{non-suspended} version of \cs{@@_suspended:T}.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_set_nopar:Npn \l_@@_suspended_tl { }
\cs_set_protected:Npn \debug_suspend:
@@ -1676,7 +1676,7 @@
% perform both checks.
% \end{itemize}
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\exp_args:Nc \cs_set_protected:Npn { @@_check-declarations_on: }
{
@@ -1756,7 +1756,7 @@
% letter \meta{scope} according to what the first assignment to the
% given variable was.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_set_protected:Npn \@@_chk_var_scope_aux:NN #1#2
{ \exp_args:NNf \@@_chk_var_scope_aux:Nn #1 { \cs_to_str:N #2 } }
@@ -1814,7 +1814,7 @@
% |1+2\relax+3| would incorrectly be accepted as a valid integer
% expression.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\exp_args:Nc \cs_set_protected:Npn { @@_check-expressions_on: }
{
@@ -1860,7 +1860,7 @@
% option was given. When debugging is not enabled, simply produce an
% error.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\exp_args:Nc \cs_set_protected:Npn { @@_log-functions_on: }
{
@@ -1888,7 +1888,7 @@
% two token lists, mostly filled up by calls to
% \cs{__kernel_patch_deprecation:nnNNpn} in each module.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_set_protected:Npn \@@_deprecation_on:
{ \g_@@_deprecation_on_tl }
@@ -1927,7 +1927,7 @@
% If debugging is disabled, \cs{__kernel_patch_deprecation:nnNNpn} lets the
% definition happen.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_set_protected:Npn \__kernel_patch_deprecation:nnNNpn #1#2#3#4#5#
{
@@ -1997,7 +1997,7 @@
% case, grab the name of the function to be defined and its parameters
% then insert tokens before and/or after the definition.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_set_protected:Npn \__kernel_patch:nnNNpn #1#2#3#4#5#
{ \@@_patch_aux:nnnn {#1} {#2} { #3 #4 #5 } }
@@ -2038,7 +2038,7 @@
{ \__kernel_patch_args:nnnNNpn { } { } }
\cs_set_protected:Npn \__kernel_patch_conditional_args:nNNpnn
{ \__kernel_patch_conditional_args:nnnNNpnn { } { } }
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_set_protected:Npn \__kernel_patch_args:nnnNNpn #1#2#3#4#5#6#
{ \@@_patch_args_aux:nnnNNnn {#1} {#2} {#3} #4 #5 {#6} }
diff --git a/l3kernel/l3flag.dtx b/l3kernel/l3flag.dtx
index 969ec09..126917c 100644
--- a/l3kernel/l3flag.dtx
+++ b/l3kernel/l3flag.dtx
@@ -249,7 +249,7 @@
% to be patched since some are defined in terms of others.
% \begin{macrocode}
%<*package>
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_new:Npn \@@_chk_exist:n #1
{
diff --git a/l3kernel/l3kernel-functions.dtx b/l3kernel/l3kernel-functions.dtx
index 70f2a04..f80a8bb 100644
--- a/l3kernel/l3kernel-functions.dtx
+++ b/l3kernel/l3kernel-functions.dtx
@@ -136,9 +136,9 @@
% the \meta{follow-on}.
% \end{function}
%
-% \begin{function}{\__kernel_debug:TF}
+% \begin{function}{\__kernel_if_debug:TF}
% \begin{syntax}
-% \cs{__kernel_debug:TF} \Arg{true code} \Arg{false code}
+% \cs{__kernel_if_debug:TF} \Arg{true code} \Arg{false code}
% \end{syntax}
% Runs the \meta{true code} if debugging is enabled, namely only in
% \LaTeXe{} package mode with one of the options
diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index 55cebb0..532f853 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -1822,7 +1822,7 @@
% In format mode the error is somewhat different.
% \begin{macrocode}
%<*package>
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\__kernel_msg_new:nnnn { kernel } { debug }
{ The~debugging~option~'#1'~does~not~exist~\msg_line_context:. }
diff --git a/l3kernel/l3regex.dtx b/l3kernel/l3regex.dtx
index 7c79e7f..41a9008 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -6644,7 +6644,7 @@
% typically~1. If the module's current tracing level is less than
% |#2| show nothing, otherwise write |#3| to the terminal.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_new_protected:Npn \@@_trace_push:nnN #1#2#3
{ \@@_trace:nnx {#1} {#2} { entering~ \token_to_str:N #3 } }
@@ -6673,7 +6673,7 @@
% stored in \tn{toks} from $0$ to \cs{l_@@_max_state_int}
% (excluded).
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_new_protected:Npn \@@_trace_states:n #1
{
diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx
index 09a369a..97ba62c 100644
--- a/l3kernel/l3tl.dtx
+++ b/l3kernel/l3tl.dtx
@@ -1179,7 +1179,7 @@
% For setting token list variables equal to each other. When checking
% is turned on, make sure both variables exist.
% \begin{macrocode}
-\__kernel_debug:TF
+\__kernel_if_debug:TF
{
\cs_new_protected:Npn \tl_set_eq:NN #1#2
{
More information about the latex3-commits
mailing list