[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Bug in the easy FFI parser
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Bug in the easy FFI parser |
Date: |
Wed, 15 Dec 2004 19:44:30 +0100 |
On Wed, 15 Dec 2004 18:54:12 +0100, Thomas Chust <address@hidden> wrote:
> Hello,
>
> I think, I've run into a bug in CHICKEN's easy FFI parser: If a function
> parameter is declared as a double *, the easy FFI parser transforms this
> into a (pointer double), not a f64vector. A float * on the other hand is
> translated to a f32vector type. The latter behaviour is what the
> documentation says should happen for both floats and doubles.
>
Indeed. It turns out forgot a comma...
cd /home/felix/chicken/
diff -c /home/felix/chicken/easyffi.scm.\~1.37.\~
/home/felix/chicken/easyffi.scm
*** /home/felix/chicken/easyffi.scm.~1.37.~ 2004-11-06 14:20:24.000000000
+0100
--- /home/felix/chicken/easyffi.scm 2004-12-15 19:31:25.000000000 +0100
***************
*** 328,334 ****
['(pointer char) (strtype)]
['(pointer long) 's32vector]
['(pointer float) 'f32vector]
! [`(pointer (or 'double 'number)) 'f64vector]
[`(pointer ,(? string? t)) (simplify-ptr t1 t)]
[`(ref ,(? string? t)) (simplify-ref t1 t)]
[_ t1] ) ) ] ) )
--- 328,334 ----
['(pointer char) (strtype)]
['(pointer long) 's32vector]
['(pointer float) 'f32vector]
! [`(pointer ,(or 'double 'number)) 'f64vector]
[`(pointer ,(? string? t)) (simplify-ptr t1 t)]
[`(ref ,(? string? t)) (simplify-ref t1 t)]
[_ t1] ) ) ] ) )
Diff finished at Wed Dec 15 19:32:01
cheers,
felix