diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3experimental/l3str/l3flag.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3experimental/l3str/l3flag.dtx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/l3experimental/l3str/l3flag.dtx b/Master/texmf-dist/source/latex/l3experimental/l3str/l3flag.dtx index eed657ad231..46bd4c80cf7 100644 --- a/Master/texmf-dist/source/latex/l3experimental/l3str/l3flag.dtx +++ b/Master/texmf-dist/source/latex/l3experimental/l3str/l3flag.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -%% File: l3flag.dtx Copyright (C) 2011 The LaTeX3 Project +%% File: l3flag.dtx Copyright (C) 2011-2012 The LaTeX3 Project %% %% It may be distributed and/or modified under the conditions of the %% LaTeX Project Public License (LPPL), either version 1.3c of this @@ -70,7 +70,7 @@ % \begin{documentation} % % Flags are the only data structure on which \TeX{} can perform -% assignments in expansion only contexts. This module is meant +% assignments in expansion-only contexts. This module is meant % mostly for kernel use: in almost all cases, booleans should % be preferred to flags, because they are faster. % @@ -155,16 +155,14 @@ % \begin{macrocode} \cs_new_protected:Npn \flag_new:N #1 { + \cs_new_eq:NN #1 \c_undefined:D \tl_if_in:NnTF \g_flag_list_tl {#1} { \msg_kernel_error:nnx { flag } { already-defined } { \token_to_str:N #1 } } - { - \tl_gput_right:Nn \g_flag_list_tl {#1} - \cs_new_eq:NN #1 \c_undefined:D - } + { \tl_gput_right:Nn \g_flag_list_tl {#1} } } \cs_generate_variant:Nn \flag_new:N { c } % \end{macrocode} |