From: ·······@gmail.com
Subject: Re: Calling lisp functions
Date: 
Message-ID: <efec7f8b-44eb-4162-b718-f195ab0a0e9b@j39g2000yqn.googlegroups.com>
Francogrex wrote:
> I'm using ECL a lot but have yet to see posted a comprehensive example
> on how to embed CL functions.

I've put up http://github.com/ayrnieu/ecl-examples/tree/master ;
you can

  git clone git://github.com/ayrnieu/ecl-examples.git
  cd ecl-examples
  make
From: ·······@gmail.com
Subject: Re: Calling lisp functions
Date: 
Message-ID: <a11c2b5f-e224-4ec7-96f0-68f2efe11d32@o2g2000prl.googlegroups.com>
On Mar 1, 5:23 pm, Francogrex <······@grex.org> wrote:
> Hi what's the [...] MAKE_FIXNUM to pass a float or double from
> C to ECL.
> Is there sometyhing like MAKE_FLOAT?

void floats (void) {
  cl_object vector;
  vector = cl_vector(2, ecl_make_singlefloat(1234567890123456.0),
                        ecl_make_doublefloat(1234567890123456.0));
  cl_print(1, vector);
  cl_terpri(0);
}

If you've installed ECL into /usr/local , you can look through the
headers in /usr/local/include/ecl/ [the way I did to answer your
question].