summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/core-env.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/core-env.lua')
-rw-r--r--tex/context/base/mkiv/core-env.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/core-env.lua b/tex/context/base/mkiv/core-env.lua
index 866176171..06c9708d6 100644
--- a/tex/context/base/mkiv/core-env.lua
+++ b/tex/context/base/mkiv/core-env.lua
@@ -13,7 +13,6 @@ if not modules then modules = { } end modules ['core-env'] = {
local P, C, S, Cc, lpegmatch, patterns = lpeg.P, lpeg.C, lpeg.S, lpeg.Cc, lpeg.match, lpeg.patterns
-local newtoken = newtoken or token
local context = context
local texgetcount = tex.getcount
@@ -23,6 +22,8 @@ local allocate = utilities.storage.allocate
local setmetatableindex = table.setmetatableindex
local setmetatablecall = table.setmetatablecall
+local createtoken = token.create
+
tex.modes = allocate { }
tex.systemmodes = allocate { }
tex.constants = allocate { }
@@ -38,10 +39,9 @@ local systemmodes = { }
-- undefined: mode == 0 or cmdname = "undefined_cs"
-local create = newtoken.create
local cache = table.setmetatableindex(function(t,k)
- local v = create(k)
+ local v = createtoken(k)
t[k] = v
return v
end)