summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 13:34:56 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 13:34:56 +0200
commit7b1ed699d2d798b693413f9dcc8bd7dde73f839c (patch)
tree7aa45ca32c6af26f836c641d3f1805c14e6c28df /luaotfload-database.lua
parent05d35df82bc90d04445116c383dcdbaff5bfd794 (diff)
downloadluaotfload-7b1ed699d2d798b693413f9dcc8bd7dde73f839c.tar.gz
rename ``flush_cache`` -> ``flush_lookup_cache``
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index ffcf536..ac10d20 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -239,7 +239,7 @@ end
local crude_file_lookup
local crude_file_lookup_verbose
local find_closest
-local flush_cache
+local flush_lookup_cache
local font_fullinfo
local load_names
local load_lookups
@@ -1392,7 +1392,7 @@ local function scan_os_fonts(fontnames, newfontnames)
return n_scanned, n_new
end
-flush_cache = function ()
+flush_lookup_cache = function ()
if not names.lookups then names.lookups = load_lookups() end
names.lookups = { }
collectgarbage"collect"
@@ -1651,7 +1651,7 @@ end
--- export functionality to the namespace “fonts.names”
-----------------------------------------------------------------------
-names.flush_cache = flush_cache --- concerns lookups
+names.flush_lookup_cache = flush_lookup_cache
names.save_lookups = save_lookups
names.load = load_names
names.save = save_names