Re: [Ecls-list] build lisp array in C

2011-06-30 Thread Juan Jose Garcia-Ripoll
On Fri, Jul 1, 2011 at 12:18 AM, Eric Schulte wrote:

> Hi,
>
> While I'm generally having success using lisp objects from within C, I
> am unable to successfully create a lisp array from a list of C ints.
> For example the following throws invalid memory access errors [1] on the
> first call to si_aset...

[...]

>  fix(i), fix(c_bytes[i]));


MAKE_FIXNUM(i), MAKE_FIXNUM(c_bytes[i]))

...

-- 
Instituto de FĂ­sica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


[Ecls-list] build lisp array in C

2011-06-30 Thread Eric Schulte
Hi,

While I'm generally having success using lisp objects from within C, I
am unable to successfully create a lisp array from a list of C ints.
For example the following throws invalid memory access errors [1] on the
first call to si_aset...

  int i, length;
  length = 5;
  int c_bytes[5];
  for (i=0; ihttp://ecls.wikispaces.com/C+and+lisp+conversion+functions

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list