[sdiy] OT (but very synthy): C question
Neil Johnson
neil.johnson97 at ntlworld.com
Tue Mar 29 20:35:35 CEST 2011
Hi,
Olivier Gillet <ol.gillet at gmail.com> wrote:
> Sorry for the mistake in my first post: forward declarations are C++ only.
>
> The right syntax for forward struct declarations in C is:
>
> typedef struct LFO LFO;
> typedef struct MIDI MIDI;
No, that's a typedef type definition. What you mean is an incomplete
forward definition of a struct:
struct LFO;
Neil
--
http://www.njohnson.co.uk
More information about the Synth-diy
mailing list