Lisp HUG Maillist Archive

Packing alignment in FLI

If, say, a C struct is defined in MS VS following a

  #pragma pack(push, 1)

line, is there a way to access this struct using the LispWorks FLI?  I
know that, cough, with this other Lisp compiler you can do things like

  (def-foreign-type (foostruct (:pack 1))
    (:struct
      (x :char)
      (y :int)))

but I don't know how to do that with LispWorks.

Thanks,
Edi.


Re: Packing alignment in FLI

On Tue, 11 Jul 2006 22:30:06 +0200, Edi Weitz <edi@agharta.de> wrote:

> If, say, a C struct is defined in MS VS following a
>
>   #pragma pack(push, 1)
>
> line, is there a way to access this struct using the LispWorks FLI?
> I know that, cough, with this other Lisp compiler you can do things
> like
>
>   (def-foreign-type (foostruct (:pack 1))
>     (:struct
>       (x :char)
>       (y :int)))
>
> but I don't know how to do that with LispWorks.

Found it.  Sorry, it seems I used the wrong search words on Gmane.

  http://article.gmane.org/gmane.lisp.lispworks.general/5070/

Looks like this is undocumented, though.

Cheers,
Edi.


Updated at: 2020-12-10 08:48 UTC