[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix redundant luaotfload.main calls (03fb787)

Marcel Fabian Krüger tex at 2krueger.de
Thu Apr 16 13:17:28 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/03fb787893d4f5b66eeffdcace931753b8480d49

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

commit 03fb787893d4f5b66eeffdcace931753b8480d49
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Apr 16 13:17:28 2020 +0200

    Fix redundant luaotfload.main calls


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

03fb787893d4f5b66eeffdcace931753b8480d49
 src/luaotfload-main.lua | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index cb4f636..7ce6c67 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -37,6 +37,7 @@ config                            = config     or { }
 luaotfload                        = luaotfload or { }
 local luaotfload                  = luaotfload
 luaotfload.log                    = luaotfload.log or { }
+local logreport
 luaotfload.version                = ProvidesLuaModule.version
 luaotfload.loaders                = { }
 luaotfload.min_luatex_version     = { 0, 95, 0 }
@@ -255,7 +256,6 @@ local function install_loaders ()
 
     function loaders.initialize (name)
         local tmp       = loadmodule (name)
-        local logreport = luaotfload.log.report
         local init = type(tmp) == "table" and tmp.init or tmp
         if init and type (init) == "function" then
             local t_0 = osgettimeofday ()
@@ -305,12 +305,11 @@ luaotfload.main = function ()
     local init      = loadmodule "init" --- fontloader initialization
     init (function ()
 
+        logreport = luaotfload.log.report
         initialize "parsers"         --- fonts.conf and syntax
         initialize "configuration"   --- configuration options
     end)
 
-    local logreport = luaotfload.log.report
-
     initialize "loaders"         --- Font loading; callbacks
     initialize "database"        --- Font management.
     initialize "colors"          --- Per-font colors.





More information about the latex3-commits mailing list.