comparison src/if_ruby.c @ 7823:bcef391c101c v7.4.1208

commit https://github.com/vim/vim/commit/68c2f638e65d914dc6e84eb7ce2624f08af525c0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 30 17:24:07 2016 +0100 patch 7.4.1208 Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jan 2016 17:30:04 +0100
parents bce3b5ddb393
children b6cb94ad97a4
comparison
equal deleted inserted replaced
7822:c357d21dc1b5 7823:bcef391c101c
623 623
624 /* 624 /*
625 * Free ruby.dll 625 * Free ruby.dll
626 */ 626 */
627 static void 627 static void
628 end_dynamic_ruby() 628 end_dynamic_ruby(void)
629 { 629 {
630 if (hinstRuby) 630 if (hinstRuby)
631 { 631 {
632 close_dll(hinstRuby); 632 close_dll(hinstRuby);
633 hinstRuby = NULL; 633 hinstRuby = NULL;
672 /* 672 /*
673 * If ruby is enabled (there is installed ruby on Windows system) return TRUE, 673 * If ruby is enabled (there is installed ruby on Windows system) return TRUE,
674 * else FALSE. 674 * else FALSE.
675 */ 675 */
676 int 676 int
677 ruby_enabled(verbose) 677 ruby_enabled(int verbose)
678 int verbose;
679 { 678 {
680 return ruby_runtime_link_init((char *)p_rubydll, verbose) == OK; 679 return ruby_runtime_link_init((char *)p_rubydll, verbose) == OK;
681 } 680 }
682 #endif /* defined(DYNAMIC_RUBY) || defined(PROTO) */ 681 #endif /* defined(DYNAMIC_RUBY) || defined(PROTO) */
683 682
684 void 683 void
685 ruby_end() 684 ruby_end(void)
686 { 685 {
687 #ifdef DYNAMIC_RUBY 686 #ifdef DYNAMIC_RUBY
688 end_dynamic_ruby(); 687 end_dynamic_ruby();
689 #endif 688 #endif
690 } 689 }
1113 if (buf == NULL) 1112 if (buf == NULL)
1114 rb_raise(eDeletedBufferError, "attempt to refer to deleted buffer"); 1113 rb_raise(eDeletedBufferError, "attempt to refer to deleted buffer");
1115 return buf; 1114 return buf;
1116 } 1115 }
1117 1116
1118 static VALUE buffer_s_current() 1117 static VALUE buffer_s_current(void)
1119 { 1118 {
1120 return buffer_new(curbuf); 1119 return buffer_new(curbuf);
1121 } 1120 }
1122 1121
1123 static VALUE buffer_s_count() 1122 static VALUE buffer_s_count(void)
1124 { 1123 {
1125 buf_T *b; 1124 buf_T *b;
1126 int n = 0; 1125 int n = 0;
1127 1126
1128 for (b = firstbuf; b != NULL; b = b->b_next) 1127 for (b = firstbuf; b != NULL; b = b->b_next)
1355 if (win == NULL) 1354 if (win == NULL)
1356 rb_raise(eDeletedWindowError, "attempt to refer to deleted window"); 1355 rb_raise(eDeletedWindowError, "attempt to refer to deleted window");
1357 return win; 1356 return win;
1358 } 1357 }
1359 1358
1360 static VALUE window_s_current() 1359 static VALUE window_s_current(void)
1361 { 1360 {
1362 return window_new(curwin); 1361 return window_new(curwin);
1363 } 1362 }
1364 1363
1365 /* 1364 /*
1366 * Added line manipulation functions 1365 * Added line manipulation functions
1367 * SegPhault - 03/07/05 1366 * SegPhault - 03/07/05
1368 */ 1367 */
1369 static VALUE line_s_current() 1368 static VALUE line_s_current(void)
1370 { 1369 {
1371 return get_buffer_line(curbuf, curwin->w_cursor.lnum); 1370 return get_buffer_line(curbuf, curwin->w_cursor.lnum);
1372 } 1371 }
1373 1372
1374 static VALUE set_current_line(VALUE self UNUSED, VALUE str) 1373 static VALUE set_current_line(VALUE self UNUSED, VALUE str)
1375 { 1374 {
1376 return set_buffer_line(curbuf, curwin->w_cursor.lnum, str); 1375 return set_buffer_line(curbuf, curwin->w_cursor.lnum, str);
1377 } 1376 }
1378 1377
1379 static VALUE current_line_number() 1378 static VALUE current_line_number(void)
1380 { 1379 {
1381 return INT2FIX((int)curwin->w_cursor.lnum); 1380 return INT2FIX((int)curwin->w_cursor.lnum);
1382 } 1381 }
1383 1382
1384 1383
1385 1384
1386 static VALUE window_s_count() 1385 static VALUE window_s_count(void)
1387 { 1386 {
1388 #ifdef FEAT_WINDOWS 1387 #ifdef FEAT_WINDOWS
1389 win_T *w; 1388 win_T *w;
1390 int n = 0; 1389 int n = 0;
1391 1390