From ce886921fec191c6d62e2592fda064790bef8e9f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 20 Jun 2015 23:46:01 +0200 Subject: [init] add stub for module sanitization --- src/luaotfload-init.lua | 8 ++++++++ src/luaotfload-main.lua | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua index 22ad704..8bbb59f 100644 --- a/src/luaotfload-init.lua +++ b/src/luaotfload-init.lua @@ -309,3 +309,11 @@ luatexbase.add_to_callback("hpack_filter", "luaotfload.node_processor", 1) +return { + init = function () + init_prepare () + init_main () + init_cleanup () + end +} + diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua index d15e082..6e7a971 100644 --- a/src/luaotfload-main.lua +++ b/src/luaotfload-main.lua @@ -143,7 +143,7 @@ end local make_loader = function (prefix) return function (name) local modname = make_loader_name (prefix, name) - require (modname) + return require (modname) end end @@ -154,7 +154,7 @@ local load_fontloader_module = make_loader "fontloader" luaotfload.loaders.luaotfload = load_luaotfload_module luaotfload.loaders.fontloader = load_fontloader_module -load_luaotfload_module "init" --- fontloader initialization +luaotfload.init = load_luaotfload_module "init" --- fontloader initialization local log = luaotfload.log local logreport = log.report -- cgit v1.2.3