diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua index b42689a34ab..fca1cb20ffd 100644 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua +++ b/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua @@ -2,7 +2,6 @@ -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab --- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- @@ -20,7 +19,7 @@ pump = {} -- 2048 seems to be better in windows... BLOCKSIZE = 2048 -_VERSION = "LTN12 1.0.1" +_VERSION = "LTN12 1.0.2" ----------------------------------------------------------------------------- -- Filter stuff @@ -38,7 +37,8 @@ end -- chains a bunch of filters together -- (thanks to Wim Couwenberg) function filter.chain(...) - local n = table.getn(arg) + local arg = {...} + local n = #arg local top, index = 1, 1 local retry = "" return function(chunk) @@ -186,6 +186,7 @@ end -- other, as if they were concatenated -- (thanks to Wim Couwenberg) function source.cat(...) + local arg = {...} local src = table.remove(arg, 1) return function() while src do |