patch 7.4.1208
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
diff --git a/src/if_ruby.c b/src/if_ruby.c
index bb34de1..cad6fd1 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -625,7 +625,7 @@
* Free ruby.dll
*/
static void
-end_dynamic_ruby()
+end_dynamic_ruby(void)
{
if (hinstRuby)
{
@@ -674,15 +674,14 @@
* else FALSE.
*/
int
-ruby_enabled(verbose)
- int verbose;
+ruby_enabled(int verbose)
{
return ruby_runtime_link_init((char *)p_rubydll, verbose) == OK;
}
#endif /* defined(DYNAMIC_RUBY) || defined(PROTO) */
void
-ruby_end()
+ruby_end(void)
{
#ifdef DYNAMIC_RUBY
end_dynamic_ruby();
@@ -1115,12 +1114,12 @@
return buf;
}
-static VALUE buffer_s_current()
+static VALUE buffer_s_current(void)
{
return buffer_new(curbuf);
}
-static VALUE buffer_s_count()
+static VALUE buffer_s_count(void)
{
buf_T *b;
int n = 0;
@@ -1357,7 +1356,7 @@
return win;
}
-static VALUE window_s_current()
+static VALUE window_s_current(void)
{
return window_new(curwin);
}
@@ -1366,7 +1365,7 @@
* Added line manipulation functions
* SegPhault - 03/07/05
*/
-static VALUE line_s_current()
+static VALUE line_s_current(void)
{
return get_buffer_line(curbuf, curwin->w_cursor.lnum);
}
@@ -1376,14 +1375,14 @@
return set_buffer_line(curbuf, curwin->w_cursor.lnum, str);
}
-static VALUE current_line_number()
+static VALUE current_line_number(void)
{
return INT2FIX((int)curwin->w_cursor.lnum);
}
-static VALUE window_s_count()
+static VALUE window_s_count(void)
{
#ifdef FEAT_WINDOWS
win_T *w;