gcl-devel
[Top][All Lists]
Advanced

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

[Gcl-devel] Storing C structure pointers in lisp


From: David Kirkman
Subject: [Gcl-devel] Storing C structure pointers in lisp
Date: Thu, 5 Aug 2004 15:33:19 -0700

Hi All,

  I'm interfacing gcl with some old C code of mine.  I have a lot of
functions which take structure pointers as parameters.  The structures
are created, manipulated, and freed entirely in C, but it would be
mighty convenient to be able to hold onto them in lisp.

  Is there a standard (or easy) way to do this in gcl?

  For the moment, I'm casting the pointer to an int and sending the
int back to gcl.  I'm doing the interface with (defentry) and some
scaffolding (clines) to do the back and forth casting.  I've looked at
the lispunion types in h/object.h, but I don't see anything that looks
like it is meant to hold onto a C side pointer.  Am I missing something?

Thanks,

-david k.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]