[latex3-commits] [latex3/latex3] main: Simplify `\bitset_addto_named_index:Nn` (a8e0f5431)
github at latex-project.org
github at latex-project.org
Tue Dec 12 07:40:18 CET 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/a8e0f54313837e32ef80ac75ee9785aee0f25239
>---------------------------------------------------------------
commit a8e0f54313837e32ef80ac75ee9785aee0f25239
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Tue Dec 12 04:21:01 2023 +0800
Simplify `\bitset_addto_named_index:Nn`
>---------------------------------------------------------------
a8e0f54313837e32ef80ac75ee9785aee0f25239
l3kernel/l3bitset.dtx | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/l3kernel/l3bitset.dtx b/l3kernel/l3bitset.dtx
index fcf35f7cb..0d81c4bea 100644
--- a/l3kernel/l3bitset.dtx
+++ b/l3kernel/l3bitset.dtx
@@ -328,25 +328,12 @@
% \end{macro}
% \end{macro}
%
-% \begin{variable}{\l_@@_tmp_prop}
-% A scratch prop to be able to extend the names properties.
-% \begin{macrocode}
-\prop_new:N \l_@@_tmp_prop
-% \end{macrocode}
-% \end{variable}
-%
% \begin{macro}{\bitset_addto_named_index:Nn}
% \begin{macrocode}
\cs_new_protected:Npn \bitset_addto_named_index:Nn #1#2
{
- \prop_set_from_keyval:Nn \l_@@_tmp_prop {#2}
- \prop_map_inline:Nn \l_@@_tmp_prop
- {
- \prop_gput:cnn
- { g_@@_ \cs_to_str:N #1 _name_prop }
- {##1}
- {##2}
- }
+ \prop_gput_from_keyval:cn
+ { g_@@_ \cs_to_str:N #1 _name_prop } { #2 }
}
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list.