On 15/07/08 20:23, Bill McCarthy wrote:
> On Tue 15-Jul-08 1:35pm -0600, you wrote:
>
>> 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.
>
> Since the '/' separator works for Windows also I'm now using
> that. Thanks.
>
>> 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
>
> Odd that this issue hasn't come up before - and I'm getting no
> such error in Windows.
>
> The solution is to simply move the patch function code above
> atan() instead of above abs().
>
> An updated patch is included.
>
> Thanks again, Tony. Please let me know if this patch
> doesn't work for you.
>
OK, with the new patch it compiles, and a few elementary tests show
"sanity" in the new functions, such as
:let pi2 = atan(1) * 2
:let pi3 = (pi2 + pi2) /3
:echo cos(pi3)
0.5
:echo tan(pi3) * cos(pi3) / sin(pi3)
1.0
:echo acos(-1) / pi2
2.0
:echo printf('%.13g', exp(1))
2.7182818284590
etc.
After install (and the concomitant "strip"), the patched version is
exactly 32 bytes larger than Bram's, no more (3110088 vs. 3110056),
which looks strange since the modified-by string alone is already 46
bytes. The uninstalled (unstripped) new binary is 3466704 bytes. That's
with the configure options I sent in my other post (huge +gui_gtk2
+gui_gnome +perl +python +ruby +tcl -mzscheme), compiled on openSUSE
11.0 with gcc 4.3.1
By comparison, a stripped-down "tiny" version from the same 7.2b.4
codebase is 504976 bytes.
Best regards,
Tony.
--
Help fight continental drift.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---