Hello Vim Developers and Users,

I've attached a patch to eval.c.  It's in unix fileformat so Windows
users may need to first convert it to dos format.  Place eval.diff in
your vim72b directory and type something like:

    patch -b -p 0 -i eval.diff

Why the patch?

The new version includes a few math functions but is missing many
useful ones that are part of the C library functions (and therefore
require no new code - simply references to the library).

Both log10() and pow() are present but exp(), fmod() and log() are
missing.  (Although fabs() is also missing, the new abs() function
obviates the need for it.)

There are trig functions sin(), cos() and atan().  Missing are tan(),
acos(), asin() and atan2().  Also missing are the hyperbolic functions
cosh(), sinh() and tanh().

This patch adds the above missing functions.  There are only 10.

BLOAT WARNING:  this patch cause larger vim executables.  Using
Make_ming.mak (on WinXP), vim.exe and gvim.exe are about 1.2k and 1.5k
bigger, respectively.

This patch will apply without offset warnings to the original 7.2b
through 7.2b.004.  Should any errors show up in the future after an
official patch to eval.c, I'll update this patch.

My hope is that Bram will include these 10 functions in 7.2.

-- 
Best regards,
Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Attachment: eval.diff
Description: Binary data

Raspunde prin e-mail lui