summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-sto.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/luat-sto.lua')
-rw-r--r--tex/context/base/luat-sto.lua17
1 files changed, 10 insertions, 7 deletions
diff --git a/tex/context/base/luat-sto.lua b/tex/context/base/luat-sto.lua
index 98a14e35f..f234a0628 100644
--- a/tex/context/base/luat-sto.lua
+++ b/tex/context/base/luat-sto.lua
@@ -9,18 +9,21 @@ if not modules then modules = { } end modules ['luat-sto'] = {
local type, next = type, next
local gmatch, format, write_nl = string.gmatch, string.format, texio.write_nl
+local report_storage = logs.new("storage")
+
storage = storage or { }
+local storage = storage
+
+local data = { }
+storage.data = data
+
+local evaluators = { }
+storage.evaluators = evaluators
+
storage.min = 0 -- 500
storage.max = storage.min - 1
storage.noftables = storage.noftables or 0
storage.nofmodules = storage.nofmodules or 0
-storage.data = { }
-storage.evaluators = { }
-
-local report_storage = logs.new("storage")
-
-local evaluators = storage.evaluators -- (evaluate,message,names)
-local data = storage.data
function storage.register(...)
data[#data+1] = { ... }