To: vim_dev@googlegroups.com Subject: Patch 7.4.1924 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1924 Problem: Missing "void" for functions without argument. Solution: Add "void". (Hirohito Higashi) Files: src/channel.c, src/edit.c, src/ex_cmds2.c, src/ops.c, src/screen.c *** ../vim-7.4.1923/src/channel.c 2016-06-07 22:16:31.690333465 +0200 --- src/channel.c 2016-06-12 13:56:35.597417644 +0200 *************** *** 132,138 **** } int ! ch_log_active() { return log_fd != NULL; } --- 132,138 ---- } int ! ch_log_active(void) { return log_fd != NULL; } *************** *** 1462,1468 **** * Write any lines waiting to be written to a channel. */ void ! channel_write_any_lines() { channel_T *channel; --- 1462,1468 ---- * Write any lines waiting to be written to a channel. */ void ! channel_write_any_lines(void) { channel_T *channel; *************** *** 1653,1659 **** } /* ! * Consume "len" bytes from the head of "channel"/"part". * Caller must check these bytes are available. */ void --- 1653,1659 ---- } /* ! * Consume "len" bytes from the head of "node". * Caller must check these bytes are available. */ void *************** *** 4495,4501 **** * Called when Vim is exiting: kill all jobs that have the "stoponexit" flag. */ void ! job_stop_on_exit() { job_T *job; --- 4495,4501 ---- * Called when Vim is exiting: kill all jobs that have the "stoponexit" flag. */ void ! job_stop_on_exit(void) { job_T *job; *************** *** 4509,4515 **** * job_check_ended() should be called once in a while. */ int ! has_pending_job() { job_T *job; --- 4509,4515 ---- * job_check_ended() should be called once in a while. */ int ! has_pending_job(void) { job_T *job; *** ../vim-7.4.1923/src/edit.c 2016-04-20 17:37:02.102439516 +0200 --- src/edit.c 2016-06-12 13:56:35.601417601 +0200 *************** *** 2770,2776 **** * 'completeopt' value. */ void ! completeopt_was_set() { compl_no_insert = FALSE; compl_no_select = FALSE; --- 2770,2776 ---- * 'completeopt' value. */ void ! completeopt_was_set(void) { compl_no_insert = FALSE; compl_no_select = FALSE; *** ../vim-7.4.1923/src/ex_cmds2.c 2016-06-02 14:29:59.132661030 +0200 --- src/ex_cmds2.c 2016-06-12 13:56:35.601417601 +0200 *************** *** 1174,1180 **** * Return the time in msec until the next timer is due. */ long ! check_due_timer() { timer_T *timer; long this_due; --- 1174,1180 ---- * Return the time in msec until the next timer is due. */ long ! check_due_timer(void) { timer_T *timer; long this_due; *** ../vim-7.4.1923/src/ops.c 2016-06-11 21:04:34.923761324 +0200 --- src/ops.c 2016-06-12 13:56:35.601417601 +0200 *************** *** 5819,5832 **** * Prepare for reading viminfo registers when writing viminfo later. */ void ! prepare_viminfo_registers() { y_read_regs = (yankreg_T *)alloc_clear(NUM_REGISTERS * (int)sizeof(yankreg_T)); } void ! finish_viminfo_registers() { int i; int j; --- 5819,5832 ---- * Prepare for reading viminfo registers when writing viminfo later. */ void ! prepare_viminfo_registers(void) { y_read_regs = (yankreg_T *)alloc_clear(NUM_REGISTERS * (int)sizeof(yankreg_T)); } void ! finish_viminfo_registers(void) { int i; int j; *** ../vim-7.4.1923/src/screen.c 2016-06-04 16:24:28.906189529 +0200 --- src/screen.c 2016-06-12 13:56:35.601417601 +0200 *************** *** 416,422 **** * it belongs. If highlighting was changed a redraw is needed. */ void ! redraw_after_callback() { if (State == HITRETURN || State == ASKMORE) ; /* do nothing */ --- 416,422 ---- * it belongs. If highlighting was changed a redraw is needed. */ void ! redraw_after_callback(void) { if (State == HITRETURN || State == ASKMORE) ; /* do nothing */ *************** *** 10252,10258 **** * Clear the mode message. */ void ! clearmode() { msg_pos_mode(); if (Recording) --- 10252,10258 ---- * Clear the mode message. */ void ! clearmode(void) { msg_pos_mode(); if (Recording) *** ../vim-7.4.1923/src/version.c 2016-06-11 23:22:22.895097595 +0200 --- src/version.c 2016-06-12 21:17:46.187818391 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1924, /**/ -- The sooner you fall behind, the more time you'll have to catch up. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///