[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] invalid typedef syntax using bind
From: |
Felix |
Subject: |
Re: [Chicken-users] invalid typedef syntax using bind |
Date: |
Thu, 20 Jan 2011 02:52:56 -0500 (EST) |
From: Vilson Vieira <address@hidden>
Subject: [Chicken-users] invalid typedef syntax using bind
Date: Thu, 20 Jan 2011 02:37:26 -0200
> Hello,
>
> I'm trying to apply bind to some C struct like:
>
> (bind "typedef struct foo { int x; } foo;")
>
> I got the "invalid typedef syntax" error.
>
> I replaced the typedef form with something like:
>
> (bind "struct foo { int x; };
> typedef struct foo foo;")
>
> It works but now I'm getting a C error "invalid application of
> ‘sizeof’ to incomplete type ‘struct PaHostApiInfo’". I think I really
> need the typedef on the original form.
Yes, bind doesn't handle this (common) form of typedef yet,
due to obscure technical details of the C parser (Christian
Kellermann pointed this problem out earlier).
I will try to implement this. I can't say when, though.
cheers,
felix