summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/pack-obj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/pack-obj.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/pack-obj.lua18
1 files changed, 12 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/context/base/pack-obj.lua b/Master/texmf-dist/tex/context/base/pack-obj.lua
index 0ee46fc99d1..2dabfa7846a 100644
--- a/Master/texmf-dist/tex/context/base/pack-obj.lua
+++ b/Master/texmf-dist/tex/context/base/pack-obj.lua
@@ -12,18 +12,24 @@ reusable components.</p>
--ldx]]--
local texsprint, texcount = tex.sprint, tex.count
+local allocate = utilities.storage.allocate
-jobobjects = jobobjects or { }
-jobobjects.collected = jobobjects.collected or { }
-jobobjects.tobesaved = jobobjects.tobesaved or { }
+local collected = allocate()
+local tobesaved = allocate()
-local collected, tobesaved = jobobjects.collected, jobobjects.tobesaved
+local jobobjects = {
+ collected = collected,
+ tobesaved = tobesaved,
+}
+
+job.objects = jobobjects
local function initializer()
- collected, tobesaved = jobobjects.collected, jobobjects.tobesaved
+ collected = jobobjects.collected
+ tobesaved = jobobjects.tobesaved
end
-job.register('jobobjects.collected', jobobjects.tobesaved, initializer, nil)
+job.register('job.objects.collected', tobesaved, initializer, nil)
function jobobjects.save(tag,number,page)
local t = { number, page }