tech-kern 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



Am 17.11.13 13:20, schrieb Justin Cormack:
> On Sun, Nov 17, 2013 at 12:05 PM, Marc Balmer <marc%msys.ch@localhost> 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.
>>
>> Then ${NETBSDSRCDIR}/sys/module/luastruct/ and
>> ${NETBSDSRCDIR}/lib/lua/struct/ directories will be added with the
>> respective Makefiles etc.
>>
> 
> I always found this library so un user friendly that I would rather
> program in C. Not sure it was meant as much more than a proof of
> concept. YMMV.

Well possible that I uses a different library that I wrote for data
handling.  You know pack/unpack from python?




Home | Main Index | Thread Index | Old Index