summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-mar.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
committerMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
commit69d2352af4b60929b37fc49f3bdb263977016244 (patch)
treedb5eb11398e345dfa23b4c4500fb93575d2afb7c /tex/context/base/strc-mar.lua
parentc18f7cbe51449a611ea1819fedd9a4ff18529b7d (diff)
downloadcontext-69d2352af4b60929b37fc49f3bdb263977016244.tar.gz
stable 2012.05.30 11:26
Diffstat (limited to 'tex/context/base/strc-mar.lua')
-rw-r--r--tex/context/base/strc-mar.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/tex/context/base/strc-mar.lua b/tex/context/base/strc-mar.lua
index c7ef2d4e1..66ec04739 100644
--- a/tex/context/base/strc-mar.lua
+++ b/tex/context/base/strc-mar.lua
@@ -83,7 +83,7 @@ local function resolve(t,k)
if trace_marks_set or trace_marks_get then
report_marks("undefined: name=%s",k)
end
- local crap = { autodefined = true } -- maybe set = 0 and reset = 0
+ local crap = { autodefined = true }
t[k] = crap
return crap
else
@@ -264,16 +264,13 @@ function marks.set(name,value)
dn = data[name]
end
dn.set = topofstack
- if not dn.reset then
- dn.reset = 0 -- in case of selfdefined
- end
local top = stack[topofstack]
local new = { }
if top then
for k, v in next, top do
local d = data[k]
- local r = d.reset or 0
- local s = d.set or 0
+ local r = d.reset
+ local s = d.set
if r <= topofstack and s < r then
new[k] = false
else
@@ -692,6 +689,6 @@ commands.fetchtwomarks = marks.fetchtwomarks
commands.fetchallmarks = marks.fetchallmarks
function commands.doifelsemarking(str) -- can be shortcut
- commands.doifelse(marks.exists(str))
+ commands.testcase(marks.exists(str))
end