diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-10-21 14:02:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-10-21 14:02:00 +0200 |
commit | d28ab89ebb3382dccaf69fcc582f2fe4a1571dc0 (patch) | |
tree | f7141de9d6fc6511ecca0957a4c113bcf42e3b6e /tex/generic | |
parent | 06c355066a4cf2af674302948c2f3caee06932f2 (diff) | |
download | context-d28ab89ebb3382dccaf69fcc582f2fe4a1571dc0.tar.gz |
beta 2010.10.21 14:02
Diffstat (limited to 'tex/generic')
-rw-r--r-- | tex/generic/context/luatex-fonts-merged.lua | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/tex/generic/context/luatex-fonts-merged.lua b/tex/generic/context/luatex-fonts-merged.lua index 83ca1c35c..bf2cd47fa 100644 --- a/tex/generic/context/luatex-fonts-merged.lua +++ b/tex/generic/context/luatex-fonts-merged.lua @@ -1,6 +1,6 @@ -- merged file : luatex-fonts-merged.lua -- parent file : luatex-fonts.lua --- merge date : 10/20/10 21:33:36 +-- merge date : 10/21/10 14:02:50 do -- begin closure to overcome local limits and interference @@ -766,15 +766,21 @@ end table.sortedkeys = sortedkeys table.sortedhashkeys = sortedhashkeys +local function nothing() end + local function sortedhash(t) - local s = sortedhashkeys(t) -- maybe just sortedkeys - local n = 0 - local function kv(s) - n = n + 1 - local k = s[n] - return k, t[k] + if t then + local s = sortedhashkeys(t) -- maybe just sortedkeys + local n = 0 + local function kv(s) + n = n + 1 + local k = s[n] + return k, t[k] + end + return kv, s + else + return nothing end - return kv, s end table.sortedhash = sortedhash |