[Ecls-list] Macro+segfault insight appreciated

Matthew Mondor mm_lists at pulsar-zone.net
Sat May 1 21:47:59 UTC 2010


On Sat, 1 May 2010 23:30:35 +0200
Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com> wrote:

> On Sat, May 1, 2010 at 9:18 PM, Matthew Mondor <mm_lists at pulsar-zone.net>wrote:
> 
> > Hmm after doing more tests, I noticed that interestingly, replacing the
> > unix-error call by:
> >
> > (unix-error ,cfunction err (list ,@(mapcar #'identity args)))
> >
> > Appears to finally work fine
> 
> 
> FFI:C-INLINE is destructively manipulating the source code it gets through
> the compiler. I have a fix, but I cannot commit it until I finish some other
> stuff. In the mean time you can use COPY-LIST in the args list that is
> passed to C-INLINE2.

Oh!  Indeed, (list , at args) now works fine if I pass another list to
C-INLINE.

Thank you very much,
-- 
Matt




More information about the ecl-devel mailing list