[vlc-devel] [PATCH 6/7] config: use flexible array member instead of a zero length array

Felix Abecassis felix.abecassis at gmail.com
Tue May 6 23:15:52 CEST 2014


ISO C was the same as ANSI C for me, OK.

Could you give me a reference for this?
I've found the following:
As a special case, the last element of a structure with more than one
named member may have an incomplete array type; this is called a
flexible array member. In most situations, the flexible array member
is ignored. In particular, the size of the structure is as if the
flexible array member were omitted except that it may have more
trailing padding than the omission would imply.

2014-05-06 23:00 GMT+02:00 Rémi Denis-Courmont <remi at remlab.net>:
> Le mardi 6 mai 2014, 22:53:04 Felix Abecassis a écrit :
>> Well, flexible array member is C99 so I don't understand why you mention ISO
>> C.
>
> I don't understand what you mean. The patch replaces ISO C99-incompliant code
> with also ISO C99-incompliant code.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



-- 
Félix Abecassis
http://felix.abecassis.me



More information about the vlc-devel mailing list