diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3experimental/l3str/l3flag.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3experimental/l3str/l3flag.sty | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3flag.sty b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3flag.sty index 40e2c899682..2bb94e7c62a 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3flag.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3flag.sty @@ -13,7 +13,7 @@ %% %% Do not distribute a modified version of this file. %% -%% 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 @@ -53,16 +53,14 @@ \tl_new:N \g_flag_list_tl \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 } \prg_new_conditional:Npnn \flag_test:N #1 { p , T , F , TF } |