Subject: Re: [PATCH] dir.c: avoid c99 array initialization

From: Andreas Ericsson <[email-masked]>
Date: Thu, 28 Aug 2008 17:41:09 +0200

David Kågedal wrote:
> Brandon Casey <[email-masked]> writes:
> 
>> The following syntax:
>>
>>         char foo[] = {
>>                 [0] = 1,
>>                 [7] = 2,
>>                 [15] = 3
>>         };
>>
>> is a c99 construct which some compilers do not support even though they
>> support other c99 constructs. Use an alternative.
> 
> But the alternative is much worse. So how important is it to support
> non-C99 compilers?
> 

Fairly important. Lots of people have gone through lots of work to make
sure git works with legacy compilers.

-- 
Andreas Ericsson                   [email-masked]
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231