[LAD] "enhanced event port" LV2 extension proposal

Lars Luthman lars.luthman at gmail.com
Fri Nov 30 12:02:45 UTC 2007


On Fri, 2007-11-30 at 10:42 +0000, Krzysztof Foltman wrote:
> In other words - just remove the pointer from the generic header, or
> replace it with buf[], a zero-length in-place array, as opposed to 4- or
> 8-byte pointer - and nobody's hurt ;)

If you have a flexible array member in a struct that struct is an
incomplete type and you can not put it in an array, according to the C99
standard. Not to mention that flexible array members aren't even allowed
in C++. Yes, GCC allows it anyway unless you compile with -std=c99 (or
c++98) -pedantic-errors, but it still wouldn't be very nice to use
non-standard hacks in a specification. But with the current event header
proposal we don't have a pointer _or_ a flexible array member in it, so
this discussion is sort of pointless.


--ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20071130/2143573b/attachment.pgp>


More information about the Linux-audio-dev mailing list