Thread (28 messages) flat view 28 messages, 8 authors, 2016-06-15

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

From: Andreas Ericsson <hidden>
Date: 2016-06-15 22:45:14

David Kågedal wrote:
Brandon Casey [off-list ref] writes:
quoted
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                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help