On 15/07/08 18:49, Bill McCarthy wrote: > 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. >
First, the patch program doesn't like your patch because its headers include backslashes as path separators instead of forward slashes. But that's not the worst. With the following config settings: > #!/bin/bash > export CONF_OPT_GUI='--enable-gnome-check' > export CONF_OPT_PERL='--enable-perlinterp' > export CONF_OPT_PYTHON='--enable-pythoninterp' > #export CONF_OPT_TCL='--enable-tclinterp --with-tclsh=tclsh8.5' > export CONF_OPT_TCL='--enable-tclinterp' > export CONF_OPT_RUBY='--enable-rubyinterp' > export CONF_OPT_MZSCHEME='--disable-mzschemeinterp' > #export CONF_OPT_PLTHOME='--with-plthome=/usr/local/plt' > export CONF_OPT_CSCOPE='--enable-cscope' > export CONF_OPT_MULTIBYTE='--enable-multibyte' > export CONF_OPT_FEAT='--with-features=huge' > export CONF_OPT_COMPBY='"[EMAIL PROTECTED]"' > > # need to patch feature.h > # to disable +tag_old_static: comment out: > # # define FEAT_TAG_OLDSTATIC > # at line 360 (or about) > # to enable +xterm_save: uncomment: > # /* #define FEAT_XTERM_SAVE */ > # at line 831 (or about) > > #export CONF_ARGS='--with-modified-by="Bram Moolenaar (floating point)"' > export CONF_ARGS='--with-modified-by="Bill McCarthy (floating point extra > functions)"' I get the following error in the compile: > eval.c: In function ‘f_acos’: > eval.c:8158: warning: implicit declaration of function ‘get_float_arg’ > eval.c: At top level: > eval.c:8479: error: static declaration of ‘get_float_arg’ follows non-static > declaration > eval.c:8158: error: previous implicit declaration of ‘get_float_arg’ was here > make[2]: *** [objects/eval.o] Error 1 > make[2]: Leaving directory `/root/.build/vim/vim72b/src' > make[1]: *** [reconfig] Error 2 > make[1]: Leaving directory `/root/.build/vim/vim72b/src' > make: *** [reconfig] Error 2 Best regards, Tony. -- Vidi, vici, veni. (I saw, I conquered, I came.) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
