summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/node-ini.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-09-26 17:35:54 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-09-26 17:35:54 +0200
commit2073fe5d88215dddd9a9e6421afaea7ab7db955a (patch)
treed0a65846502c24c5951f03f6018c15125a532fa5 /tex/context/base/mkxl/node-ini.lmt
parentd5e2ac5f857f2a003949fce54ed41eedc4fb9475 (diff)
downloadcontext-2073fe5d88215dddd9a9e6421afaea7ab7db955a.tar.gz
2021-09-26 16:50:00
Diffstat (limited to 'tex/context/base/mkxl/node-ini.lmt')
-rw-r--r--tex/context/base/mkxl/node-ini.lmt12
1 files changed, 11 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/node-ini.lmt b/tex/context/base/mkxl/node-ini.lmt
index a0c447954..06e36147c 100644
--- a/tex/context/base/mkxl/node-ini.lmt
+++ b/tex/context/base/mkxl/node-ini.lmt
@@ -34,9 +34,19 @@ local getvalues = node.values
tex.magicconstants = { -- we use tex.constants for something else
running = -1073741824, -- null_flag
maxdimen = 1073741823, -- max_dimen
- trueinch = 4736286,
+ -- trueinch = 4736286, -- obsolete
}
+do
+ local c = status.getconstants()
+ local t = { }
+ for k, v in next, c do
+ t[gsub(k,"_","")] = v
+ end
+
+ tex.magicconstants = table.setmetatableindex(t,c)
+end
+
local listcodes = mark(getsubtypes("list"))
local rulecodes = mark(getsubtypes("rule"))
local dircodes = mark(getsubtypes("dir"))