Re: sbcl and uffi functions that return :pointer-void

Julian Squires <[email protected]> Thu, 10 Mar 2005 20:11:49 -0330
Newsgroups gmane.lisp.uffi.devel
Message-ID <[email protected]>
Hi Cyrus, uffi-devel.

On Thu, Mar 10, 2005 at 01:21:13PM -0800, Cyrus Harmon wrote:
> I know there's been some discussion of how to avoid runtime allocation 
> on SBCL for UFFI memory access, but I'm trying to declare an UFFI 
> function that returns a :pointer-void and I get a warning about runtime 
> allocation. Declaring the return type as :int makes the warning go 
> away, but this is, of course, not the right answer. Is there a way to 
> do this without the runtime allocation?

Not easily with UFFI currently.  If you look at my correspondence with
kmr on this list a few months ago, I think I cover all the bases of
what's happening.  I'm using a workaround in a game that I intended to
release a while ago, but which I haven't finished, and I'm currently on
a vacation from programming.

If you're interested in working on a solution (other than my
workaround), I'd like to hear about it.  I was toying with a few ways of
getting UFFI to deal with the problem cases nicely, but it might require
some overhaul to do the Right thing.

Sorry I can't be of more help just right now.  Hopefully I'll be getting
back to hacking on lisp stuff in a week or two.

-- 
Julian Squires