projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f000ef
)
libs/nixio: add destination table argument to nixio.util.consume()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 18 Jul 2009 21:55:14 +0000
(21:55 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 18 Jul 2009 21:55:14 +0000
(21:55 +0000)
libs/nixio/lua/nixio/util.lua
patch
|
blob
|
history
diff --git
a/libs/nixio/lua/nixio/util.lua
b/libs/nixio/lua/nixio/util.lua
index 0e8c90c9a5bf7d28edef4a9e91e93dbf04778b0b..d83209aff63edad2b6128e79d9e7b1b8f703dbdc 100644
(file)
--- a/
libs/nixio/lua/nixio/util.lua
+++ b/
libs/nixio/lua/nixio/util.lua
@@
-26,8
+26,8
@@
local file = nixio.meta_file
local uname = nixio.uname()
local ZBUG = uname.sysname == "Linux" and uname.release:sub(1, 3) == "2.4"
-function consume(iter)
- local tbl = {}
+function consume(iter
, append
)
+ local tbl =
append or
{}
for obj in iter do
tbl[#tbl+1] = obj
end
@@
-259,4
+259,4
@@
for k, v in pairs(meta) do
file[k] = v
socket[k] = v
tls_socket[k] = v
-end
\ No newline at end of file
+end