Mercurial > vim
comparison src/if_ruby.c @ 3947:d08f05285dd1 v7.3.729
updated for version 7.3.729
Problem: Building with Ruby fails on some systems.
Solution: Remove "static" and add #ifndef PROTO. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 24 Nov 2012 13:39:00 +0100 |
parents | b23f583e132e |
children | 688da4d486a0 |
comparison
equal
deleted
inserted
replaced
3946:fcca64585e2a | 3947:d08f05285dd1 |
---|---|
333 static VALUE (*dll_rb_require) (const char*); | 333 static VALUE (*dll_rb_require) (const char*); |
334 static void (*ruby_init_stack)(VALUE*); | 334 static void (*ruby_init_stack)(VALUE*); |
335 static void* (*ruby_process_options)(int, char**); | 335 static void* (*ruby_process_options)(int, char**); |
336 #endif | 336 #endif |
337 | 337 |
338 #ifdef RUBY19_OR_LATER | 338 #if defined(RUBY19_OR_LATER) && !defined(PROTO) |
339 static SIGNED_VALUE rb_num2long_stub(VALUE x) | 339 SIGNED_VALUE rb_num2long_stub(VALUE x) |
340 { | 340 { |
341 return dll_rb_num2long(x); | 341 return dll_rb_num2long(x); |
342 } | 342 } |
343 static VALUE rb_int2big_stub(SIGNED_VALUE x) | 343 VALUE rb_int2big_stub(SIGNED_VALUE x) |
344 { | 344 { |
345 return dll_rb_int2big(x); | 345 return dll_rb_int2big(x); |
346 } | 346 } |
347 #endif | 347 #endif |
348 | 348 |