File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2323#define ruby_enabled ruby18_enabled
2424#define ruby_end ruby18_end
2525#define ruby_window_free ruby18_window_free
26+ #define vim_ruby_init vim18_ruby_init
2627#endif
2728
2829#include <stdio.h>
@@ -1471,6 +1472,7 @@ void vim_ruby_init(void *stack_start)
14711472#undef ruby_enabled
14721473#undef ruby_end
14731474#undef ruby_window_free
1475+ #undef vim_ruby_init
14741476
14751477enum {
14761478 DYNAMIC_RUBY_NOT_INITIALIZED ,
@@ -1550,4 +1552,13 @@ void ruby_window_free(win_T *win)
15501552 case DYNAMIC_RUBY_VER19 : ruby19_window_free (win ); return ;
15511553 }
15521554}
1555+
1556+ void vim_ruby_init ()
1557+ {
1558+ switch (dynamic_ruby_version ) {
1559+ case DYNAMIC_RUBY_VER18 : vim_ruby18_init (); return ;
1560+ case DYNAMIC_RUBY_VER19 : vim_ruby19_init (); return ;
1561+ }
1562+ }
1563+
15531564#endif
Original file line number Diff line number Diff line change 1616#define ruby_enabled ruby19_enabled
1717#define ruby_end ruby19_end
1818#define ruby_window_free ruby19_window_free
19+ #define vim_ruby_init vim_ruby19_init
1920
2021#include "if_ruby.c"
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ void ex_ruby19do __ARGS((exarg_T *eap));
66void ex_ruby19file __ARGS ((exarg_T * eap ));
77void ruby19_buffer_free __ARGS ((buf_T * buf ));
88void ruby19_window_free __ARGS ((win_T * win ));
9+ void vim_ruby19_init __ARGS ((void * stack_start ));
910/* vim: set ft=c : */
You can’t perform that action at this time.
0 commit comments