On 2/24/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> -    char_u   di_key[1];      /* key (actually longer!) */
> +    char_u   di_key[];       /* key (actually longer!) */

I think this is c99 vs c89 difference. C99 allows x[] as last member
of the struct, but c89 does not. As Bram mentioned, vim is written in
c89, not c99.

This won't work for standard C compilers, they will complain about
unkown size for di_key.

The problem is in the compiler, so fix the compiler.  Or perhaps there
is a way to silence the compiler?

Yakov

Reply via email to