dir.c: Avoid c99 array initialization
commit63e8aea74e992bd8667e35a0e646110acc1f0d7c
authorBrandon Casey <casey@nrlssc.navy.mil>
Thu, 28 Aug 2008 22:47:22 +0000 (28 17:47 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2008 04:49:51 +0000 (28 21:49 -0700)
tree58acf6bbde6c04d76920403349c60c5609306872
parent1b0f7978ddb9e2ed4437ce68a4b82ab831288a41
dir.c: Avoid c99 array initialization

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. This construct can be avoided by folding
these 'special' test cases into the sane_ctype array and making use of
the related infrastructure.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ctype.c
dir.c
git-compat-util.h