summaryrefslogtreecommitdiff
path: root/tex/context/base/core-env.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-07-12 20:20:46 +0300
committerMarius <mariausol@gmail.com>2013-07-12 20:20:46 +0300
commitb1d691809f3556327b45caf09444c50a77335b8f (patch)
tree8e85bb077d6680d1ea73a284a9ab3a0d26954628 /tex/context/base/core-env.lua
parentb10c48bc0fe2e5be7305c0f31e41ea01f8596c30 (diff)
downloadcontext-b1d691809f3556327b45caf09444c50a77335b8f.tar.gz
beta 2013.07.12 19:10
Diffstat (limited to 'tex/context/base/core-env.lua')
-rw-r--r--tex/context/base/core-env.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/tex/context/base/core-env.lua b/tex/context/base/core-env.lua
index de977d0bb..a4d1fdd92 100644
--- a/tex/context/base/core-env.lua
+++ b/tex/context/base/core-env.lua
@@ -15,7 +15,7 @@ local P, C, S, Cc, lpegmatch, patterns = lpeg.P, lpeg.C, lpeg.S, lpeg.Cc, lpeg.m
local csname_id = token.csname_id
local create = token.create
-local texcount = tex.count
+local texgetcount = tex.getcount
local texsetcount = tex.setcount
local allocate = utilities.storage.allocate
@@ -44,8 +44,8 @@ setmetatableindex(tex.modes, function(t,k)
if csname_id(n) == undefined then
return false
else
- modes[k] = function() return texcount[n] >= 1 end
- return texcount[n] >= 1
+ modes[k] = function() return texgetcount(n) >= 1 end
+ return texgetcount(n) >= 1
end
end
end)
@@ -59,18 +59,18 @@ setmetatableindex(tex.systemmodes, function(t,k)
if csname_id(n) == undefined then
return false
else
- systemmodes[k] = function() return texcount[n] >= 1 end
- return texcount[n] >= 1
+ systemmodes[k] = function() return texgetcount(n) >= 1 end
+ return texgetcount(n) >= 1
end
end
end)
setmetatableindex(tex.constants, function(t,k)
- return csname_id(k) ~= undefined and texcount[k] or 0
+ return csname_id(k) ~= undefined and texgetcount(k) or 0
end)
setmetatableindex(tex.conditionals, function(t,k) -- 0 == true
- return csname_id(k) ~= undefined and texcount[k] == 0
+ return csname_id(k) ~= undefined and texgetcount(k) == 0
end)
setmetatableindex(tex.ifs, function(t,k)
@@ -86,7 +86,7 @@ end)
-- if glob then
-- texsetcount("global",name,0)
-- else
--- texcount[name] = 0
+-- texsetcount(name,0)
-- end
-- end
--
@@ -94,7 +94,7 @@ end)
-- if glob then
-- texsetcount("global",name,1)
-- else
--- texcount[name] = 1
+-- texsetcount(name,1)
-- end
-- end