Kazunobu Kuriyama wrote:

> Attached is a patch which makes isnan() and isinf() portable.
> 
> It is basically a combination of the existence cpp macros of json.c and
> what is described in the manual
> http://www.gnu.org/software/autoconf/manual/autoconf.html#Library-Functions
> , on top of configure check.
> 
> As Nikolay suggested, adding the attributes "const" and "always_inline"
> could be possible but not done in the patch.
> 
> Although __inline__ is used, it is disabled by AC_C_INLINE if a given
> compiler doesn't support it.

Thanks.  The WIN32 stuff should not be changed though.  From the
replacement functions we only need the "double" versions.

I'll move the code to macros.h, since isnan() is needed in channel.c and
eval.c

-- 
Dogs must have a permit signed by the mayor in order to congregate in groups
of three or more on private property.
                [real standing law in Oklahoma, 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