[latex3-commits] [git/LaTeX3-latex3-latex3] luaintarray: Make token_create alias for token.create available for all expl3 code (bd3547787)

Marcel Fabian Krüger tex at 2krueger.de
Mon Nov 15 15:24:22 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : luaintarray
Link       : https://github.com/latex3/latex3/commit/bd3547787155573da59c9eecec80b3d3b61f120a

>---------------------------------------------------------------

commit bd3547787155573da59c9eecec80b3d3b61f120a
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Nov 12 19:54:25 2021 +0100

    Make token_create alias for token.create available for all expl3 code


>---------------------------------------------------------------

bd3547787155573da59c9eecec80b3d3b61f120a
 l3kernel/l3luatex.dtx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index ac63d0f89..36ddf3995 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -370,9 +370,10 @@ local scan_int     = token.scan_int or token.scan_integer
 local scan_string  = token.scan_string
 local scan_keyword = token.scan_keyword
 local put_next     = token.put_next
+local token_create = token.create
 
-local true_tok     = token.create'prg_return_true:'
-local false_tok    = token.create'prg_return_false:'
+local true_tok     = token_create'prg_return_true:'
+local false_tok    = token_create'prg_return_false:'
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -642,7 +643,6 @@ end)
 % a function instead of an index into the functions table.
 %    \begin{macrocode}
 local luacmd do
-  local token_create = token.create
   local set_lua = token.set_lua
   local undefined_cs = token.command_id'undefined_cs'
 
@@ -665,7 +665,7 @@ local luacmd do
     local register = context.functions.register
     local functions = context.functions.known
     function luacmd(name, func, ...)
-      local tok = token.create(name)
+      local tok = token_create(name)
       if tok.command == undefined_cs then
         token.set_lua(name, register(func), ...)
       else





More information about the latex3-commits mailing list.