summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-06-20 23:46:01 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-06-20 23:46:01 +0200
commitce886921fec191c6d62e2592fda064790bef8e9f (patch)
tree03f9b4251ae106b4b6471fc02f7f031d49d9b7dd /src
parent8018408e5e87da1ba46414d4620ac5c21a0b3bdb (diff)
downloadluaotfload-ce886921fec191c6d62e2592fda064790bef8e9f.tar.gz
[init] add stub for module sanitization
Diffstat (limited to 'src')
-rw-r--r--src/luaotfload-init.lua8
-rw-r--r--src/luaotfload-main.lua4
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