|
From: Florian K. <fl...@ei...> - 2014-12-29 08:22:28
|
I'd like to add -std=gnu99 to the compiler options. We've been using all sorts of C99 features for quite some time, such as - // comments - mixing statements and declarations - inline functions - long long - designated initialisers - compound literals - variable length arrays The one thing I'd like to use but currently cannot, is declaring a variable in the initialisation part of a for statement, e.g. for (int i = 0; i < n; ++i) ..... Currently, this produces an error. There is a subtle difference in c99 that changes the type of an unsuffixed decimal constant. Such a constant, if its value is > LONG_MAX has type unsigned int in c90 and type long long int in c99. We do not use such constants and are therefore not affected. If I don't hear any objections I'll make the change in a couple of days. Florian |
|
From: Julian S. <js...@ac...> - 2014-12-29 09:14:39
|
On 28/12/14 23:54, Florian Krohm wrote: > If I don't hear any objections I'll make the change in a couple of days. Sounds good to me. The declaration-in-for-loop thing would be nice to have -- the lack of it quite often annoys me. J |
|
From: Florian K. <fl...@ei...> - 2015-01-01 18:49:41
|
On 29.12.2014 10:14, Julian Seward wrote: > On 28/12/14 23:54, Florian Krohm wrote: > >> If I don't hear any objections I'll make the change in a couple of days. Done. |