diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
commit | f74161ca4e7eb3c5af9afcbe92522ae3b58987c1 (patch) | |
tree | 3c30a13df5ac7968195c85070a2b074578e669d2 /Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua | |
parent | 1d5a55ac8f5506a7ae9cfca52f4b588182e199d4 (diff) |
context beta/cont-tmf.zip (Apr 16 12:55)
git-svn-id: svn://tug.org/texlive/trunk@43931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua b/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua index 2573e5f5cea..5ebfca87d14 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua @@ -27,10 +27,8 @@ local getnext = nuts.getnext local getprev = nuts.getprev local getsubtype = nuts.getsubtype local getfield = nuts.getfield -local setfield = nuts.setfield local getlist = nuts.getlist local setlist = nuts.setlist -local flushnode = nuts.flush local removenode = nuts.remove local traverse = nuts.traverse local traverse_id = nuts.traverse_id @@ -46,9 +44,6 @@ local userdefined_code = whatsitcodes.userdefined local nodepool = nodes.pool local new_usernumber = nodepool.usernumber -local nutpool = nuts.pool -local nut_usernumber = nutpool.usernumber - local variables = interfaces.variables local v_before = variables.before local v_after = variables.after @@ -89,14 +84,13 @@ local function register(where,data,...) end local writenode = node.write -local flushnode = context.flushnode +local flushnode = context.nodes.flush function commands.deferredproperty(...) -- context(register(...)) flushnode(register(...)) end - function commands.immediateproperty(...) writenode(register(...)) end @@ -107,8 +101,7 @@ local actions = { } properties.actions = actions table.setmetatableindex(actions,function(t,k) report("unknown property action %a",k) - local v = function() end - return v + return function() end end) local f_delayed = formatters["return function(target,head,where,propdata,parent) %s end"] @@ -180,6 +173,9 @@ end -- another experiment (a table or function closure are equally efficient); a function -- is easier when we want to experiment with different (compatible) implementations +-- local nutpool = nuts.pool +-- local nut_usernumber = nutpool.usernumber + -- function nodes.nuts.pool.deferredfunction(...) -- nofdelayed = nofdelayed + 1 -- local n = nut_usernumber(property_id,0) @@ -316,7 +312,7 @@ local anchored = { } table.setmetatableindex(anchored,function(t,k) - v = anchored[v_after] + local v = anchored[v_after] t[k] = v return v end) |