Re: Question wrt interface to Allegro
Nicolas Neuss <[email protected]> Wed, 10 Dec 2008 17:59:56 +0100
| Newsgroups | gmane.lisp.matlisp.user |
|---|---|
| Organization | IWRMM |
| Message-ID | <[email protected]> |
Comparing with Matlisp, I have found my bug. Nicolas Neuss <[email protected]> writes: > (foreign-functions:def-foreign-call (dnrm2- "dnrm2_") "dnrm2" is correct > ((n :int) (x (:array :double)) (incx :int)) > :convention :fortran > :returning :double) To make sure I understand this correctly: dnrm2_ is probably a routine suitable for calling from C (passing arrays as a pointer to values) while Allegro with convention :fortran passes arrays pointing to values-1 as is suitable for the Fortran "dnrm2". Is this correct? Thanks, Nicolas ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/