[latex3-commits] [l3svn] 03/06: Shorten some Lua local copy names

noreply at latex-project.org noreply at latex-project.org
Sun Jul 9 20:06:46 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 8f8394c65bc6aa7fccbf068d817d978448d1dbbd
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Jul 9 10:15:58 2017 +0100

    Shorten some Lua local copy names
    
    We are going to want a few more soon, so let's keep it clear.
---
 l3kernel/l3luatex.dtx |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index ca3ad91..184d780 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -231,12 +231,12 @@ l3kernel = l3kernel or { }
 %   Various local copies of standard functions: naming convention is to retain
 %   the full text but replace all |.| by |_|. 
 %    \begin{macrocode}
-local tex               = tex
-local tex_setcatcode    = tex.setcatcode
-local tex_sprint        = tex.sprint
-local tex_write         = tex.write
-local unicode           = unicode
-local unicode_utf8_char = unicode.utf8.char
+local tex        = tex
+local setcatcode = tex.setcatcode
+local sprint     = tex.sprint
+local write      = tex.write
+local unicode    = unicode
+local utf8_char  = unicode.utf8.char
 %    \end{macrocode}
 %
 % \begin{macro}[int]{l3kernel.strcmp}
@@ -245,11 +245,11 @@ local unicode_utf8_char = unicode.utf8.char
 %    \begin{macrocode}
 local function strcmp(A, B)
   if A == B then
-    tex_write("0")
+    write("0")
   elseif A < B then
-    tex_write("-1")
+    write("-1")
   else
-    tex_write("1")
+    write("1")
   end
 end
 l3kernel.strcmp = strcmp
@@ -264,8 +264,8 @@ l3kernel.strcmp = strcmp
 %    \begin{macrocode}
 local charcat_table = l3kernel.charcat_table or 1
 local function charcat(charcode, catcode)
-  tex_setcatcode(charcat_table, charcode, catcode)
-  tex_sprint(charcat_table, unicode_utf8_char(charcode))
+  setcatcode(charcat_table, charcode, catcode)
+  sprint(charcat_table, utf8_char(charcode))
 end
 l3kernel.charcat = charcat
 %    \end{macrocode}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list