[vlc-devel] [PATCH 05/12] Replace variable-length arrays by calls to alloca() for C90 compliance.

Rémi Denis-Courmont remi at remlab.net
Sat Nov 30 16:40:51 CET 2013

Le samedi 30 novembre 2013, 15:59:19 Felix Abecassis a écrit :
> C89 and C90 are the same.
> VLAs were added in C99 so removing them actually helps C89/C90 compliance.

That's not true. alloca() is not in C89, even if you want to call it C90. It 
is non-standard and thus using it cannot help standard compliance.

> MSVC is not a C99 compiler so unfortunately we don't really have a choice
> here.

VLC is C99 code (plus some easy to backport C11 features). Use a C99-
compatible compiler.

Rémi Denis-Courmont

More information about the vlc-devel mailing list