Am 16.01.2014 20:29 schröbte Geoff Leyland: > Hi, > >[...] > > I’m afraid it’s LuaJIT only at the moment, it uses the FFI rather > than the classic Lua API. If there’s interest I’ll try to find time > to build a standard Lua binding. Furthermore, it uses a callback > interface, like readosm, rather than a more Lua-like iterator > interface. Unfortunately, turning a callback interface into an > iterator interface requires yielding across a C boundary.
You can yield across a C boundary in Lua 5.2 if you use `lua_callk` instead of `lua_call`. With a simple `#define` you can still make it compile on Lua 5.1 (the yielding won't work there, of course). I started writing a Wiki page on this stuff, maybe I find the time to finish it this weekend ... > > Cheers, > Geoff > Philipp ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers