summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-11-03 03:50:35 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-11-03 03:52:31 +0200
commitb9f388349d0f602bbc9ebc9c59160298b4bbbb4c (patch)
tree449c9ddf4331a97134b9a650595bbdfda0197fab
parent430e36b5a723b307678070fd5b8597ab7c57a935 (diff)
downloadluaotfload-b9f388349d0f602bbc9ebc9c59160298b4bbbb4c.tar.gz
Now `make check-all` runs successfully again
Node mode does not seem to work, though.
-rw-r--r--luaotfload.dtx16
1 files changed, 11 insertions, 5 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 77aec84..1464b05 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -503,12 +503,18 @@ end
%
%
% \begin{macrocode}
-function table.swaphash(h) -- needs another name
- local r = { }
- for k,v in next, h do
- r[v] = string.lower(string.gsub(k," ",""))
+function table.reversed(t)
+ if t then
+ local tt, tn = { }, #t
+ if tn > 0 then
+ local ttn = 0
+ for i=tn,1,-1 do
+ ttn = ttn + 1
+ tt[ttn] = t[i]
+ end
+ end
+ return tt
end
- return r
end
% \end{macrocode}
%