mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-19 19:58:20 +01:00
12 lines
233 B
Lua
12 lines
233 B
Lua
|
function filter.cycle(lowlevel, context, extra)
|
||
|
return function(chunk)
|
||
|
local ret
|
||
|
ret, context = lowlevel(context, chunk, extra)
|
||
|
return ret
|
||
|
end
|
||
|
end
|
||
|
|
||
|
function normalize(marker)
|
||
|
return filter.cycle(eol, 0, marker)
|
||
|
end
|