From 965214d981e6129b782c67adcaf3a81aedcb0bac Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 20 Oct 2013 01:20:14 +0300 Subject: stable 2013.05.28 00:36 --- tex/context/base/strc-itm.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tex/context/base/strc-itm.lua') diff --git a/tex/context/base/strc-itm.lua b/tex/context/base/strc-itm.lua index 4945c282f..8a745f356 100644 --- a/tex/context/base/strc-itm.lua +++ b/tex/context/base/strc-itm.lua @@ -10,19 +10,19 @@ local structures = structures local itemgroups = structures.itemgroups local jobpasses = job.passes -local setvariable = jobpasses.save -local getvariable = jobpasses.getfield +local setfield = jobpasses.save +local getfield = jobpasses.getfield function itemgroups.register(name,nofitems,maxwidth) - setvariable("itemgroup", { nofitems, maxwidth }) + setfield("itemgroup", { nofitems, maxwidth }) end function itemgroups.nofitems(name,index) - return getvariable("itemgroup", index, 1, 0) + return getfield("itemgroup", index, 1, 0) end function itemgroups.maxwidth(name,index) - return getvariable("itemgroup", index, 2, 0) + return getfield("itemgroup", index, 2, 0) end -- interface (might become counter/dimension) @@ -30,9 +30,9 @@ end commands.registeritemgroup = itemgroups.register function commands.nofitems(name,index) - context(getvariable("itemgroup", index, 1, 0)) + context(getfield("itemgroup", index, 1, 0)) end function commands.maxitemwidth(name,index) - context(getvariable("itemgroup", index, 2, 0)) + context(getfield("itemgroup", index, 2, 0)) end -- cgit v1.2.3