Andrei Olsen wrote:
> C API changed in Ruby 2.2:
>
> rb_num2long now returns a long instead of SIGNED_VALUE and
> rb_num2ulong returns an unsigned long instead of VALUE.
>
> As a consequence Vim fails to compile (tried to build a version with dynamic
> Ruby; MinGW x64 under Windows) with the following errors:
>
> if_ruby.c:399:14: error: conflicting types for 'rb_num2long_stub'
> SIGNED_VALUE rb_num2long_stub(VALUE x)
> ^
> if_ruby.c:87:22: note: previous declaration of 'rb_num2long_stub' was here
> # define rb_num2long rb_num2long_stub
> ^
> c:/Ruby22/include/ruby-2.2.0/ruby/ruby.h:608:6: note: in expansion of macro
> 'rb_num2long'
> long rb_num2long(VALUE);
> ^
> if_ruby.c:424:7: error: conflicting types for 'rb_num2ulong'
> VALUE rb_num2ulong(VALUE x)
> ^
> In file included from c:/Ruby22/include/ruby-2.2.0/ruby.h:33:0,
> from if_ruby.c:109:
> c:/Ruby22/include/ruby-2.2.0/ruby/ruby.h:609:15: note: previous declaration
> of 'rb_num2ulong' was here
> unsigned long rb_num2ulong(VALUE);
> ^
>
>
> Here's the patch I used as a workaround:
Thanks for the patch. Why do you call it a workaround? Would there be
a better way to fix this?
--
FROG: How you English say: I one more time, mac, I unclog my nose towards
you, sons of a window-dresser, so, you think you could out-clever us
French fellows with your silly knees-bent creeping about advancing
behaviour. (blows a raspberry) I wave my private parts at your aunties,
you brightly-coloured, mealy-templed, cranberry-smelling, electric
donkey-bottom biters.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// 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.