summaryrefslogtreecommitdiff
path: root/src/if_ruby.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-09-18 16:36:32 +0200
committerBram Moolenaar <Bram@vim.org>2012-09-18 16:36:32 +0200
commit2623b4f412a77f6426ab997246d755fdcbddea7b (patch)
tree68173556dce825342efb56c6ef162bcd519c2473 /src/if_ruby.c
parente8cdcef87575cacbc9dd977de076af76e4405410 (diff)
downloadvim-git-2623b4f412a77f6426ab997246d755fdcbddea7b.tar.gz
updated for version 7.3.662v7.3.662
Problem: Can't build Ruby interface with Ruby 1.9.3. Solution: Add missing functions. (V. Ondruch)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index ab4ac6997..dd1ba4700 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -178,6 +178,9 @@ static void ruby_vim_init(void);
#define rb_hash_new dll_rb_hash_new
#define rb_inspect dll_rb_inspect
#define rb_int2inum dll_rb_int2inum
+#define rb_fix2int dll_rb_fix2int
+#define rb_num2int dll_rb_num2int
+#define rb_num2uint dll_rb_num2uint
#define rb_lastline_get dll_rb_lastline_get
#define rb_lastline_set dll_rb_lastline_set
#define rb_load_protect dll_rb_load_protect
@@ -268,7 +271,9 @@ static VALUE (*dll_rb_hash_aset) (VALUE, VALUE, VALUE);
static VALUE (*dll_rb_hash_new) (void);
static VALUE (*dll_rb_inspect) (VALUE);
static VALUE (*dll_rb_int2inum) (long);
-static VALUE (*dll_rb_int2inum) (long);
+static long (*dll_rb_fix2int) (VALUE);
+static long (*dll_rb_num2int) (VALUE);
+static unsigned long (*dll_rb_num2uint) (VALUE);
static VALUE (*dll_rb_lastline_get) (void);
static void (*dll_rb_lastline_set) (VALUE);
static void (*dll_rb_load_protect) (VALUE, int, int*);
@@ -377,6 +382,9 @@ static struct
{"rb_hash_new", (RUBY_PROC*)&dll_rb_hash_new},
{"rb_inspect", (RUBY_PROC*)&dll_rb_inspect},
{"rb_int2inum", (RUBY_PROC*)&dll_rb_int2inum},
+ {"rb_fix2int", (RUBY_PROC*)&dll_rb_fix2int},
+ {"rb_num2int", (RUBY_PROC*)&dll_rb_num2int},
+ {"rb_num2uint", (RUBY_PROC*)&dll_rb_num2uint},
{"rb_lastline_get", (RUBY_PROC*)&dll_rb_lastline_get},
{"rb_lastline_set", (RUBY_PROC*)&dll_rb_lastline_set},
{"rb_load_protect", (RUBY_PROC*)&dll_rb_load_protect},