[latex3-commits] [git/LaTeX3-latex3-latex3] luaintarray: Replace :wNw with just :w (60a4fdfcf)
Marcel Fabian Krüger
tex at 2krueger.de
Sat Nov 13 09:37:53 CET 2021
Repository : https://github.com/latex3/latex3
On branch : luaintarray
Link : https://github.com/latex3/latex3/commit/60a4fdfcf62365c3886818c2bca37adb35feb6dc
>---------------------------------------------------------------
commit 60a4fdfcf62365c3886818c2bca37adb35feb6dc
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sat Nov 13 09:37:53 2021 +0100
Replace :wNw with just :w
>---------------------------------------------------------------
60a4fdfcf62365c3886818c2bca37adb35feb6dc
l3kernel/l3intarray.dtx | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/l3kernel/l3intarray.dtx b/l3kernel/l3intarray.dtx
index 4a16a7158..95dcb6e32 100644
--- a/l3kernel/l3intarray.dtx
+++ b/l3kernel/l3intarray.dtx
@@ -342,12 +342,13 @@ end, 'global')
%
% \subsubsection{Array items}
%
-% \begin{macro}{\@@_gset:wNwF, \@@_gset:wNw}
-% The setter provided by Lua. The argument order somewhat emulates the |\fontdimen|
+% \begin{macro}{\@@_gset:wF, \@@_gset:w}
+% The setter provided by Lua. The argument order somewhat emulates the |\fontdimen|:
+% First the array index, followed by the intarray and then the new value.
% This has been chosen over a more conventional order to provide a delimiter for the numbers.
% \begin{macrocode}
%<*lua>
-luacmd('@@_gset:wNwF', function()
+luacmd('@@_gset:wF', function()
local i = scan_int()
local t = @@_table()
if t[i] then
@@ -360,7 +361,7 @@ luacmd('@@_gset:wNwF', function()
end
end, 'protected', 'global')
-luacmd('@@_gset:wNw', function()
+luacmd('@@_gset:w', function()
local i = scan_int()
local t = @@_table()
if t[i] then
@@ -384,10 +385,10 @@ end, 'protected', 'global')
% \begin{macrocode}
%<*tex>
\cs_new_protected:Npn \__kernel_intarray_gset:Nnn #1#2#3
-{ \@@_gset:wNw #2 #1 #3 \scan_stop: }
+{ \@@_gset:w #2 #1 #3 \scan_stop: }
\cs_new_protected:Npn \intarray_gset:Nnn #1#2#3
{
- \@@_gset:wNwF \int_eval:n {#2} #1 \int_eval:n{#3}
+ \@@_gset:wF \int_eval:n {#2} #1 \int_eval:n{#3}
{
\msg_error:nnxxx { kernel } { out-of-bounds }
{ \token_to_str:N #1 } { \int_use:N \l_@@_bad_index_int } { \intarray_count:N #1 }
@@ -546,11 +547,11 @@ end, 'global')
%<*tex>
\cs_new_protected:Npn \__kernel_intarray_gset_range_from_clist:Nnn #1#2#3
{
- \@@_gset_range:wNw \int_eval:w #2 #1 #3 , , \scan_stop:
+ \@@_gset_range:w \int_eval:w #2 #1 #3 , , \scan_stop:
}
%</tex>
%<*lua>
-luacmd('@@_gset_range:wNw', function()
+luacmd('@@_gset_range:w', function()
local from = scan_int()
local t = @@_table()
while true do
More information about the latex3-commits
mailing list.