[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Roberto's struct library missing "size" function?
- From: Fabio Mascarenhas <mascarenhas@...>
- Date: Mon, 12 Oct 2009 14:56:37 -0300
Sorry, I didn't know that Roberto had updated this library last year.
What is missing in Alien's struct.c, compared to the current
implementation from Roberto's, is specifying alignment (Alien's
struct.c always assumes native alignment) and having spaces (which are
ignored) on the format string.
Struct.c is kind of deprecated on Alien 0.5 by alien.defstruct and
friends, which give a more structured way of dealing with structs
(pardon the pun).
--
Fabio Mascarenhas
On Mon, Oct 12, 2009 at 2:27 PM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> On Mon, Oct 12, 2009 at 6:58 PM, Cosmin Apreutesei
> <cosmin.apreutesei@gmail.com> wrote:
>> Hm, you're right. Get this
>> instead: http://github.com/mascarenhas/alien/blob/master/src/alien/struct.c
>
> Remember that Alien's struct is a _subset_ (plus the extension to work
> with Alien userdata blobs). I got burned trying to do some examples
> on Roberto's page.
>