diff options
author | Bram Moolenaar <bram@vim.org> | 2012-11-20 16:59:14 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2012-11-20 16:59:14 +0100 |
commit | bdec84bd6a97575efb8d03434d555d0bebd9b599 (patch) | |
tree | b0ae722e2004259a70adec6b30436657a8c51871 | |
parent | 5290cc1ee796c7b536b0bfdd7208e56abadbaedc (diff) | |
download | vim-bdec84bd6a97575efb8d03434d555d0bebd9b599.tar.gz |
Problem: Ruby interface defines local functions globally.
Solution: Make the functions static.
-rw-r--r-- | src/if_ruby.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index aea7b565..bc15b4a6 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -336,11 +336,11 @@ static void* (*ruby_process_options)(int, char**); #endif #ifdef RUBY19_OR_LATER -SIGNED_VALUE rb_num2long_stub(VALUE x) +static SIGNED_VALUE rb_num2long_stub(VALUE x) { return dll_rb_num2long(x); } -VALUE rb_int2big_stub(SIGNED_VALUE x) +static VALUE rb_int2big_stub(SIGNED_VALUE x) { return dll_rb_int2big(x); } diff --git a/src/version.c b/src/version.c index 6b2919ad..fdac7f14 100644 --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 721, +/**/ 720, /**/ 719, |