Ozaki Kiichi wrote:

> Some vim codes use C99 features;

We aim at ANSI C, but some things may be optional.

> * json.c: isinf(), NAN, INFINITY

AFAIK isinf() is ANSI C.

It appears INFINITY was first officially standardized in C99, but it
existed much longer before that.  Not sure what else to use when
INFINITY is not available.

NAN is not even in C99, it appears.  Again, not sure what to do if it's
not available.

> * alloc.h: comma at end of enum list
> https://github.com/vim/vim/blob/a260b87d9da17f605666630f18c1ed909c2b8bae/src/alloc.h#L20

Is there any compiler that complains?  Perhaps GCC with forcing ANSI C?

> So we need C99 compiler to build vim with "normal" or further.

No, we still aim for ANSI C as the minimum, with #ifdefs where needed.
C99 probably works better.

> I think we should refer to the above in some documents.

-- 
You can be stopped by the police for biking over 65 miles per hour.
You are not allowed to walk across a street on your hands.
                [real standing laws in Connecticut, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui