[latex3-commits] [l3svn] 04/06: Reorder some code

noreply at latex-project.org noreply at latex-project.org
Sun Jul 9 20:06:47 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 02bff408ce89e5fff5e617a91cc1d231e7209b75
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Jul 9 10:19:35 2017 +0100

    Reorder some code
    
    There are a number of other items to add here, so getting some
    logical order established it a good idea.
---
 l3kernel/l3luatex.dtx |   46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index 184d780..3ba43c4 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -128,14 +128,6 @@
 % As well as interfaces for \TeX{}, there are a small number of Lua functions
 % provided here. Currently these are intended for internal use only.
 %
-% \begin{function}{l3kernel.strcmp}
-%   \begin{syntax}
-%     \cs{l3kernel.strcmp}|(|\meta{str one}, \meta{str two}|)|
-%   \end{syntax}
-%   Compares the two strings and returns |0| to \TeX{}
-%   if the two are identical.
-% \end{function}
-%
 % \begin{function}{l3kernel.charcat}
 %   \begin{syntax}
 %     \cs{l3kernel.charcat}|(|\meta{charcode}, \meta{catcode}|)|
@@ -144,6 +136,14 @@
 %   the result to \TeX{}.
 % \end{function}
 %
+% \begin{function}{l3kernel.strcmp}
+%   \begin{syntax}
+%     \cs{l3kernel.strcmp}|(|\meta{str one}, \meta{str two}|)|
+%   \end{syntax}
+%   Compares the two strings and returns |0| to \TeX{}
+%   if the two are identical.
+% \end{function}
+%
 % \end{documentation}
 %
 % \begin{implementation}
@@ -239,6 +239,21 @@ local unicode    = unicode
 local utf8_char  = unicode.utf8.char
 %    \end{macrocode}
 %
+% \begin{macro}[int]{l3kernel.charcat}
+%   Creating arbitrary chars needs a category code table. As set up here,
+%   one may have been assigned earlier (see \pkg{l3bootstrap}) or a hard-coded
+%   one is used. The latter is intended for format mode and should be adjusted
+%   to match an eventual allocator.
+%    \begin{macrocode}
+local charcat_table = l3kernel.charcat_table or 1
+local function charcat(charcode, catcode)
+  setcatcode(charcat_table, charcode, catcode)
+  sprint(charcat_table, utf8_char(charcode))
+end
+l3kernel.charcat = charcat
+%    \end{macrocode}
+% \end{macro}
+%
 % \begin{macro}[int]{l3kernel.strcmp}
 %   String comparison which gives the same results as \pdfTeX{}'s
 %   \tn{pdfstrcmp}, although the ordering should likely not be relied upon!
@@ -256,21 +271,6 @@ l3kernel.strcmp = strcmp
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}[int]{l3kernel.charcat}
-%   Creating arbitrary chars needs a category code table. As set up here,
-%   one may have been assigned earlier (see \pkg{l3bootstrap}) or a hard-coded
-%   one is used. The latter is intended for format mode and should be adjusted
-%   to match an eventual allocator.
-%    \begin{macrocode}
-local charcat_table = l3kernel.charcat_table or 1
-local function charcat(charcode, catcode)
-  setcatcode(charcat_table, charcode, catcode)
-  sprint(charcat_table, utf8_char(charcode))
-end
-l3kernel.charcat = charcat
-%    \end{macrocode}
-% \end{macro}
-%
 % \subsection{Generic \Lua{} and font support}
 %
 %    \begin{macrocode}

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


More information about the latex3-commits mailing list