tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: A Library for Converting Data to and from C Structs for Lua



Marc Balmer wrote:
> I came accross a small library for converting data to an from C structs
> for Lua, written by Roberto Ierusalimschy:
> 
> http://www.inf.puc-rio.br/~roberto/struct/
> 
> I plan to import it and to make it available to both lua(1) and lua(4)
> as follows:
> 
> The source code will be imported into
> ${NETBSDSRCDIR}/sys/external/mit/struct unaltered and then be modified
> to compile on NetBSD.

Shouldn't it be mit/luastruct?

> Then ${NETBSDSRCDIR}/sys/module/luastruct/ and
> ${NETBSDSRCDIR}/lib/lua/struct/ directories will be added with the
> respective Makefiles etc.

Are you going to make it kmod? It's an overkill, IMO. Not every Lua
module a kernel module. The framework should support this distinction.

PS I don't see devel/lua-struct. It'd be nice to have it in pkgsrc.

Alex


Home | Main Index | Thread Index | Old Index