Patch 9.0.1336
Problem:    Functions without arguments are not always declared properly.
Solution:   Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
Files:      src/channel.c, src/charset.c, src/clipboard.c, src/crypt.c,
            src/debugger.c, src/edit.c, src/ex_docmd.c, src/gui_gtk_x11.c,
            src/gui_xim.c, src/highlight.c, src/if_lua.c, src/indent.c,
            src/insexpand.c, src/job.c, src/misc1.c, src/mouse.c,
            src/normal.c, src/optionstr.c, src/popupmenu.c, src/popupwin.c,
            src/proto/filepath.pro, src/proto/gui_motif.pro, src/quickfix.c,
            src/register.c, src/screen.c, src/sound.c, src/term.c,
            src/terminal.c, src/time.c, src/userfunc.c, src/vim.h,
            src/vim9compile.c, src/window.c


*** ../vim-9.0.1335/src/channel.c       2023-01-31 21:01:04.486233804 +0000
--- src/channel.c       2023-02-21 14:21:21.288350207 +0000
***************
*** 4180,4186 ****
   * Return TRUE when there is any channel with a keep_open flag.
   */
      int
! channel_any_keep_open()
  {
      channel_T *channel;
  
--- 4180,4186 ----
   * Return TRUE when there is any channel with a keep_open flag.
   */
      int
! channel_any_keep_open(void)
  {
      channel_T *channel;
  
*** ../vim-9.0.1335/src/charset.c       2023-02-19 18:36:24.723281718 +0000
--- src/charset.c       2023-02-21 14:21:21.288350207 +0000
***************
*** 1764,1770 ****
   * columns (bytes) at the start of a given line
   */
      int
! getwhitecols_curline()
  {
      return getwhitecols(ml_get_curline());
  }
--- 1764,1770 ----
   * columns (bytes) at the start of a given line
   */
      int
! getwhitecols_curline(void)
  {
      return getwhitecols(ml_get_curline());
  }
*** ../vim-9.0.1335/src/clipboard.c     2023-02-20 12:16:33.328269404 +0000
--- src/clipboard.c     2023-02-21 14:21:21.288350207 +0000
***************
*** 257,263 ****
   * right text.
   */
      static int
! is_clipboard_needs_update()
  {
      return clipboard_needs_update;
  }
--- 257,263 ----
   * right text.
   */
      static int
! is_clipboard_needs_update(void)
  {
      return clipboard_needs_update;
  }
*** ../vim-9.0.1335/src/crypt.c 2022-12-06 16:16:57.971656206 +0000
--- src/crypt.c 2023-02-21 14:21:21.288350207 +0000
***************
*** 155,161 ****
      // to avoid that a text file is recognized as encrypted.
  };
  
! #ifdef FEAT_SODIUM
  typedef struct {
      size_t        count;
      unsigned char   key[crypto_box_SEEDBYTES];
--- 155,161 ----
      // to avoid that a text file is recognized as encrypted.
  };
  
! #if defined(FEAT_SODIUM) || defined(PROTO)
  typedef struct {
      size_t        count;
      unsigned char   key[crypto_box_SEEDBYTES];
***************
*** 396,402 ****
   * Get maximum crypt method specific length of the file header in bytes.
   */
      int
! crypt_get_max_header_len()
  {
      int i;
      int max = 0;
--- 396,402 ----
   * Get maximum crypt method specific length of the file header in bytes.
   */
      int
! crypt_get_max_header_len(void)
  {
      int i;
      int max = 0;
*** ../vim-9.0.1335/src/debugger.c      2023-01-09 19:04:19.300528373 +0000
--- src/debugger.c      2023-02-21 14:21:21.292350207 +0000
***************
*** 734,740 ****
  }
  
      static void
! update_has_expr_breakpoint()
  {
      int i;
  
--- 734,740 ----
  }
  
      static void
! update_has_expr_breakpoint(void)
  {
      int i;
  
***************
*** 751,757 ****
   * Return TRUE if there is any expression breakpoint.
   */
      int
! debug_has_expr_breakpoint()
  {
      return has_expr_breakpoint;
  }
--- 751,757 ----
   * Return TRUE if there is any expression breakpoint.
   */
      int
! debug_has_expr_breakpoint(void)
  {
      return has_expr_breakpoint;
  }
*** ../vim-9.0.1335/src/edit.c  2023-01-09 19:04:19.300528373 +0000
--- src/edit.c  2023-02-21 14:21:21.292350207 +0000
***************
*** 4607,4613 ****
  }
  
      static void
! ins_s_left()
  {
      int end_change = dont_sync_undo == FALSE; // end undoable change
  #ifdef FEAT_FOLDING
--- 4607,4613 ----
  }
  
      static void
! ins_s_left(void)
  {
      int end_change = dont_sync_undo == FALSE; // end undoable change
  #ifdef FEAT_FOLDING
***************
*** 4676,4682 ****
  }
  
      static void
! ins_s_right()
  {
      int end_change = dont_sync_undo == FALSE; // end undoable change
  #ifdef FEAT_FOLDING
--- 4676,4682 ----
  }
  
      static void
! ins_s_right(void)
  {
      int end_change = dont_sync_undo == FALSE; // end undoable change
  #ifdef FEAT_FOLDING
*** ../vim-9.0.1335/src/ex_docmd.c      2023-02-20 12:16:33.328269404 +0000
--- src/ex_docmd.c      2023-02-21 14:21:21.292350207 +0000
***************
*** 1386,1392 ****
   * Handle when "did_throw" is set after executing commands.
   */
      void
! handle_did_throw()
  {
      char      *p = NULL;
      msglist_T *messages = NULL;
--- 1386,1392 ----
   * Handle when "did_throw" is set after executing commands.
   */
      void
! handle_did_throw(void)
  {
      char      *p = NULL;
      msglist_T *messages = NULL;
*** ../vim-9.0.1335/src/gui_gtk_x11.c   2023-01-08 13:44:21.069352345 +0000
--- src/gui_gtk_x11.c   2023-02-21 14:21:21.292350207 +0000
***************
*** 463,469 ****
   * This list is empty when there are no outstanding resize requests.
   */
      static void
! clear_resize_hists()
  {
  # ifdef ENABLE_RESIZE_HISTORY_LOG
      int                   i = 0;
--- 463,469 ----
   * This list is empty when there are no outstanding resize requests.
   */
      static void
! clear_resize_hists(void)
  {
  # ifdef ENABLE_RESIZE_HISTORY_LOG
      int                   i = 0;
***************
*** 516,522 ****
  
  # if defined(EXITFREE)
      static void
! free_all_resize_hist()
  {
      clear_resize_hists();
      vim_free(latest_resize_hist);
--- 516,522 ----
  
  # if defined(EXITFREE)
      static void
! free_all_resize_hist(void)
  {
      clear_resize_hists();
      vim_free(latest_resize_hist);
*** ../vim-9.0.1335/src/gui_xim.c       2023-02-20 12:16:33.328269404 +0000
--- src/gui_xim.c       2023-02-21 14:21:21.292350207 +0000
***************
*** 295,301 ****
  }
  
      static void
! im_preedit_window_open()
  {
      char *preedit_string;
  #if !GTK_CHECK_VERSION(3,16,0)
--- 295,301 ----
  }
  
      static void
! im_preedit_window_open(void)
  {
      char *preedit_string;
  #if !GTK_CHECK_VERSION(3,16,0)
***************
*** 417,430 ****
  }
  
      static void
! im_preedit_window_close()
  {
      if (preedit_window != NULL)
        gtk_widget_hide(preedit_window);
  }
  
      static void
! im_show_preedit()
  {
      im_preedit_window_open();
  
--- 417,430 ----
  }
  
      static void
! im_preedit_window_close(void)
  {
      if (preedit_window != NULL)
        gtk_widget_hide(preedit_window);
  }
  
      static void
! im_show_preedit(void)
  {
      im_preedit_window_open();
  
*** ../vim-9.0.1335/src/highlight.c     2023-01-09 19:04:19.304528371 +0000
--- src/highlight.c     2023-02-21 14:21:21.292350207 +0000
***************
*** 469,475 ****
   * the user to override the color values. Only loaded once.
   */
      static void
! load_default_colors_lists()
  {
      // Lacking a default color list isn't the end of the world but it is 
likely
      // an inconvenience so users should know when it is missing.
--- 469,475 ----
   * the user to override the color values. Only loaded once.
   */
      static void
! load_default_colors_lists(void)
  {
      // Lacking a default color list isn't the end of the world but it is 
likely
      // an inconvenience so users should know when it is missing.
*** ../vim-9.0.1335/src/if_lua.c        2023-02-18 14:42:40.117005581 +0000
--- src/if_lua.c        2023-02-21 14:21:21.296350207 +0000
***************
*** 2736,2742 ****
  }
  
      void
! update_package_paths_in_lua()
  {
      if (!lua_isopen())
        return;
--- 2736,2742 ----
  }
  
      void
! update_package_paths_in_lua(void)
  {
      if (!lua_isopen())
        return;
*** ../vim-9.0.1335/src/indent.c        2023-01-12 12:33:25.428525183 +0000
--- src/indent.c        2023-02-21 14:21:21.296350207 +0000
***************
*** 1161,1167 ****
   * Return TRUE if the conditions are OK for smart indenting.
   */
      int
! may_do_si()
  {
      return curbuf->b_p_si
        && !curbuf->b_p_cin
--- 1161,1167 ----
   * Return TRUE if the conditions are OK for smart indenting.
   */
      int
! may_do_si(void)
  {
      return curbuf->b_p_si
        && !curbuf->b_p_cin
*** ../vim-9.0.1335/src/insexpand.c     2023-02-20 12:16:33.332269406 +0000
--- src/insexpand.c     2023-02-21 14:21:21.296350207 +0000
***************
*** 2994,3000 ****
   * one assigned yet.
   */
      static void
! ins_compl_update_sequence_numbers()
  {
      int               number = 0;
      compl_T   *match;
--- 2994,3000 ----
   * one assigned yet.
   */
      static void
! ins_compl_update_sequence_numbers(void)
  {
      int               number = 0;
      compl_T   *match;
***************
*** 3457,3463 ****
   * Get the next set of command-line completions matching "compl_pattern".
   */
      static void
! get_next_cmdline_completion()
  {
      char_u    **matches;
      int               num_matches;
--- 3457,3463 ----
   * Get the next set of command-line completions matching "compl_pattern".
   */
      static void
! get_next_cmdline_completion(void)
  {
      char_u    **matches;
      int               num_matches;
*** ../vim-9.0.1335/src/job.c   2023-01-14 12:32:24.215984102 +0000
--- src/job.c   2023-02-21 14:21:21.296350207 +0000
***************
*** 885,891 ****
   * Return TRUE when there is any running job that we care about.
   */
      int
! job_any_running()
  {
      job_T     *job;
  
--- 885,891 ----
   * Return TRUE when there is any running job that we care about.
   */
      int
! job_any_running(void)
  {
      job_T     *job;
  
***************
*** 1655,1661 ****
   * Return TRUE if the cursor is in the editable position of the prompt line.
   */
      int
! prompt_curpos_editable()
  {
      return curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count
        && curwin->w_cursor.col >= (int)STRLEN(prompt_text());
--- 1655,1661 ----
   * Return TRUE if the cursor is in the editable position of the prompt line.
   */
      int
! prompt_curpos_editable(void)
  {
      return curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count
        && curwin->w_cursor.col >= (int)STRLEN(prompt_text());
*** ../vim-9.0.1335/src/misc1.c 2023-02-15 19:13:39.359474078 +0000
--- src/misc1.c 2023-02-21 14:21:21.296350207 +0000
***************
*** 1313,1319 ****
  
  #if defined(MSWIN) || defined(PROTO)
  /*
!  * Initilize $VIM and $VIMRUNTIME when 'enc' is updated.
   */
      void
  init_vimdir(void)
--- 1313,1319 ----
  
  #if defined(MSWIN) || defined(PROTO)
  /*
!  * Initialize $VIM and $VIMRUNTIME when 'enc' is updated.
   */
      void
  init_vimdir(void)
***************
*** 2777,2783 ****
   * Fires a ModeChanged autocmd event if appropriate.
   */
      void
! may_trigger_modechanged()
  {
  #ifdef FEAT_EVAL
      dict_T        *v_event;
--- 2777,2783 ----
   * Fires a ModeChanged autocmd event if appropriate.
   */
      void
! may_trigger_modechanged(void)
  {
  #ifdef FEAT_EVAL
      dict_T        *v_event;
*** ../vim-9.0.1335/src/mouse.c 2022-11-23 22:28:03.552026184 +0000
--- src/mouse.c 2023-02-21 14:21:21.296350207 +0000
***************
*** 2234,2240 ****
  static int    held_button = MOUSE_RELEASE;
  
      void
! reset_held_button()
  {
      held_button = MOUSE_RELEASE;
  }
--- 2234,2240 ----
  static int    held_button = MOUSE_RELEASE;
  
      void
! reset_held_button(void)
  {
      held_button = MOUSE_RELEASE;
  }
*** ../vim-9.0.1335/src/normal.c        2023-02-18 20:15:39.693994664 +0000
--- src/normal.c        2023-02-21 14:21:21.296350207 +0000
***************
*** 976,989 ****
  
      // Reset finish_op, in case it was set
  #ifdef CURSOR_SHAPE
!     c = finish_op;
  #endif
      finish_op = FALSE;
      may_trigger_modechanged();
  #ifdef CURSOR_SHAPE
      // Redraw the cursor with another shape, if we were in Operator-pending
      // mode or did a replace command.
!     if (c || ca.cmdchar == 'r')
      {
        ui_cursor_shape();              // may show different cursor shape
  # ifdef FEAT_MOUSESHAPE
--- 976,989 ----
  
      // Reset finish_op, in case it was set
  #ifdef CURSOR_SHAPE
!     int prev_finish_op = finish_op;
  #endif
      finish_op = FALSE;
      may_trigger_modechanged();
  #ifdef CURSOR_SHAPE
      // Redraw the cursor with another shape, if we were in Operator-pending
      // mode or did a replace command.
!     if (prev_finish_op || ca.cmdchar == 'r')
      {
        ui_cursor_shape();              // may show different cursor shape
  # ifdef FEAT_MOUSESHAPE
***************
*** 1110,1123 ****
   * from do_pending_operator().
   */
      void
! end_visual_mode()
  {
      end_visual_mode_keep_button();
      reset_held_button();
  }
  
      void
! end_visual_mode_keep_button()
  {
  #ifdef FEAT_CLIPBOARD
      // If we are using the clipboard, then remember what was selected in case
--- 1110,1123 ----
   * from do_pending_operator().
   */
      void
! end_visual_mode(void)
  {
      end_visual_mode_keep_button();
      reset_held_button();
  }
  
      void
! end_visual_mode_keep_button(void)
  {
  #ifdef FEAT_CLIPBOARD
      // If we are using the clipboard, then remember what was selected in case
***************
*** 3190,3196 ****
      else if (cap->oap->op_type != OP_NOP
            && (cap->oap->start.lnum > curbuf->b_ml.ml_line_count
                || cap->oap->start.col >
!               (colnr_T)STRLEN(ml_get(cap->oap->start.lnum))
                || did_emsg
               ))
        // The start of the operator has become invalid by the Ex command.
--- 3190,3196 ----
      else if (cap->oap->op_type != OP_NOP
            && (cap->oap->start.lnum > curbuf->b_ml.ml_line_count
                || cap->oap->start.col >
!                                 (colnr_T)STRLEN(ml_get(cap->oap->start.lnum))
                || did_emsg
               ))
        // The start of the operator has become invalid by the Ex command.
*** ../vim-9.0.1335/src/optionstr.c     2023-02-20 12:16:33.336269408 +0000
--- src/optionstr.c     2023-02-21 14:21:21.296350207 +0000
***************
*** 3075,3081 ****
   * restore_shm_value() exactly the same number of times.
   */
      void
! save_clear_shm_value()
  {
      if (STRLEN(p_shm) >= SHM_LEN)
      {
--- 3075,3081 ----
   * restore_shm_value() exactly the same number of times.
   */
      void
! save_clear_shm_value(void)
  {
      if (STRLEN(p_shm) >= SHM_LEN)
      {
***************
*** 3094,3100 ****
   * Restore the shortmess Flags set from the save_clear_shm_value() function.
   */
      void
! restore_shm_value()
  {
      if (--set_shm_recursive == 0)
      {
--- 3094,3100 ----
   * Restore the shortmess Flags set from the save_clear_shm_value() function.
   */
      void
! restore_shm_value(void)
  {
      if (--set_shm_recursive == 0)
      {
*** ../vim-9.0.1335/src/popupmenu.c     2023-01-18 18:17:43.861053452 +0000
--- src/popupmenu.c     2023-02-21 14:21:21.296350207 +0000
***************
*** 387,393 ****
   * This will avoid clearing and redrawing the popup menu, prevent flicker.
   */
      void
! pum_call_update_screen()
  {
      call_update_screen = TRUE;
  
--- 387,393 ----
   * This will avoid clearing and redrawing the popup menu, prevent flicker.
   */
      void
! pum_call_update_screen(void)
  {
      call_update_screen = TRUE;
  
*** ../vim-9.0.1335/src/popupwin.c      2023-01-18 18:17:43.865053454 +0000
--- src/popupwin.c      2023-02-21 14:21:21.300350207 +0000
***************
*** 3309,3315 ****
   * Return FALSE when the job has ended.
   */
      int
! error_if_term_popup_window()
  {
      if (WIN_IS_POPUP(curwin) && curbuf->b_term != NULL
                                           && term_job_running(curbuf->b_term))
--- 3309,3315 ----
   * Return FALSE when the job has ended.
   */
      int
! error_if_term_popup_window(void)
  {
      if (WIN_IS_POPUP(curwin) && curbuf->b_term != NULL
                                           && term_job_running(curbuf->b_term))
***************
*** 3543,3549 ****
   * cursor moved far enough.
   */
      void
! popup_check_cursor_pos()
  {
      win_T *wp;
  
--- 3543,3549 ----
   * cursor moved far enough.
   */
      void
! popup_check_cursor_pos(void)
  {
      win_T *wp;
  
*** ../vim-9.0.1335/src/proto/filepath.pro      2022-06-27 23:15:05.000000000 
+0100
--- src/proto/filepath.pro      2023-02-21 14:21:21.300350207 +0000
***************
*** 1,11 ****
  /* filepath.c */
  int modify_fname(char_u *src, int tilde_file, int *usedlen, char_u **fnamep, 
char_u **bufp, int *fnamelen);
  void shorten_dir(char_u *str);
  void f_chdir(typval_T *argvars, typval_T *rettv);
  void f_delete(typval_T *argvars, typval_T *rettv);
  void f_executable(typval_T *argvars, typval_T *rettv);
  void f_exepath(typval_T *argvars, typval_T *rettv);
- int file_is_readable(char_u *fname);
  void f_filereadable(typval_T *argvars, typval_T *rettv);
  void f_filewritable(typval_T *argvars, typval_T *rettv);
  void f_finddir(typval_T *argvars, typval_T *rettv);
--- 1,11 ----
  /* filepath.c */
  int modify_fname(char_u *src, int tilde_file, int *usedlen, char_u **fnamep, 
char_u **bufp, int *fnamelen);
  void shorten_dir(char_u *str);
+ int file_is_readable(char_u *fname);
  void f_chdir(typval_T *argvars, typval_T *rettv);
  void f_delete(typval_T *argvars, typval_T *rettv);
  void f_executable(typval_T *argvars, typval_T *rettv);
  void f_exepath(typval_T *argvars, typval_T *rettv);
  void f_filereadable(typval_T *argvars, typval_T *rettv);
  void f_filewritable(typval_T *argvars, typval_T *rettv);
  void f_finddir(typval_T *argvars, typval_T *rettv);
*** ../vim-9.0.1335/src/proto/gui_motif.pro     2022-06-27 23:15:32.000000000 
+0100
--- src/proto/gui_motif.pro     2023-02-21 14:21:21.300350207 +0000
***************
*** 32,39 ****
  Window gui_x11_get_wid(void);
  char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, 
char_u *initdir, char_u *filter);
  int gui_mch_dialog(int type, char_u *title, char_u *message, char_u 
*button_names, int dfltbutton, char_u *textfield, int ex_cmd);
- void gui_mch_enable_footer(int showit);
- void gui_mch_set_footer(char_u *s);
  void gui_mch_show_toolbar(int showit);
  int gui_mch_compute_toolbar_height(void);
  void motif_get_toolbar_colors(Pixel *bgp, Pixel *fgp, Pixel *bsp, Pixel *tsp, 
Pixel *hsp);
--- 32,37 ----
*** ../vim-9.0.1335/src/quickfix.c      2023-02-20 12:16:33.336269408 +0000
--- src/quickfix.c      2023-02-21 14:21:21.300350207 +0000
***************
*** 8448,8454 ****
  
  # if defined(EXITFREE) || defined(PROTO)
      void
! free_quickfix()
  {
      win_T     *win;
      tabpage_T *tab;
--- 8448,8454 ----
  
  # if defined(EXITFREE) || defined(PROTO)
      void
! free_quickfix(void)
  {
      win_T     *win;
      tabpage_T *tab;
*** ../vim-9.0.1335/src/register.c      2023-01-18 18:17:43.869053455 +0000
--- src/register.c      2023-02-21 14:21:21.300350207 +0000
***************
*** 977,983 ****
   * Shift the delete registers: "9 is cleared, "8 becomes "9, etc.
   */
      void
! shift_delete_registers()
  {
      int               n;
  
--- 977,983 ----
   * Shift the delete registers: "9 is cleared, "8 becomes "9, etc.
   */
      void
! shift_delete_registers(void)
  {
      int               n;
  
***************
*** 2328,2334 ****
   * Return the index of the register "" points to.
   */
      int
! get_unname_register()
  {
      return y_previous == NULL ? -1 : y_previous - &y_regs[0];
  }
--- 2328,2334 ----
   * Return the index of the register "" points to.
   */
      int
! get_unname_register(void)
  {
      return y_previous == NULL ? -1 : y_previous - &y_regs[0];
  }
*** ../vim-9.0.1335/src/screen.c        2023-01-23 20:46:16.162493149 +0000
--- src/screen.c        2023-02-21 14:21:21.300350207 +0000
***************
*** 379,385 ****
   * Return the index in ScreenLines[] for the current screen line.
   */
      int
! screen_get_current_line_off()
  {
      return (int)(current_ScreenLine - ScreenLines);
  }
--- 379,385 ----
   * Return the index in ScreenLines[] for the current screen line.
   */
      int
! screen_get_current_line_off(void)
  {
      return (int)(current_ScreenLine - ScreenLines);
  }
***************
*** 3962,3968 ****
   * or inside a mapping.
   */
      int
! skip_showmode()
  {
      // Call char_avail() only when we are going to show something, because it
      // takes a bit of time.  redrawing() may also call char_avail().
--- 3962,3968 ----
   * or inside a mapping.
   */
      int
! skip_showmode(void)
  {
      // Call char_avail() only when we are going to show something, because it
      // takes a bit of time.  redrawing() may also call char_avail().
*** ../vim-9.0.1335/src/sound.c 2023-01-23 20:46:16.166493150 +0000
--- src/sound.c 2023-02-21 14:21:21.300350207 +0000
***************
*** 339,345 ****
  }
  
      static HWND
! sound_window()
  {
      if (g_hWndSound == NULL)
      {
--- 339,345 ----
  }
  
      static HWND
! sound_window(void)
  {
      if (g_hWndSound == NULL)
      {
*** ../vim-9.0.1335/src/term.c  2023-02-06 17:46:34.291055620 +0000
--- src/term.c  2023-02-21 14:21:21.300350207 +0000
***************
*** 2081,2087 ****
  #endif
      {
        // Use the 'keyprotocol' option to adjust the t_TE and t_TI
!       // termcap entries if there is an entry maching "term".
        keyprot_T kpc = match_keyprotocol(term);
        if (kpc == KEYPROTOCOL_KITTY)
            apply_builtin_tcap(term, builtin_kitty, TRUE);
--- 2081,2087 ----
  #endif
      {
        // Use the 'keyprotocol' option to adjust the t_TE and t_TI
!       // termcap entries if there is an entry matching "term".
        keyprot_T kpc = match_keyprotocol(term);
        if (kpc == KEYPROTOCOL_KITTY)
            apply_builtin_tcap(term, builtin_kitty, TRUE);
***************
*** 2092,2098 ****
        // There is no good way to detect that the terminal supports RGB
        // colors.  Since these termcap entries are non-standard anyway and
        // only used when the user sets 'termguicolors' we might as well add
!       // them.  But not when one of them was alredy set.
        if (term_strings_not_set(KS_8F)
                && term_strings_not_set(KS_8B)
                && term_strings_not_set(KS_8U))
--- 2092,2098 ----
        // There is no good way to detect that the terminal supports RGB
        // colors.  Since these termcap entries are non-standard anyway and
        // only used when the user sets 'termguicolors' we might as well add
!       // them.  But not when one of them was already set.
        if (term_strings_not_set(KS_8F)
                && term_strings_not_set(KS_8B)
                && term_strings_not_set(KS_8U))
***************
*** 2341,2347 ****
   * Avoids that valgrind reports possibly lost memory.
   */
      void
! free_cur_term()
  {
  # ifdef HAVE_DEL_CURTERM
      if (cur_term)
--- 2341,2347 ----
   * Avoids that valgrind reports possibly lost memory.
   */
      void
! free_cur_term(void)
  {
  # ifdef HAVE_DEL_CURTERM
      if (cur_term)
***************
*** 2997,3003 ****
   * Return TRUE if we can request the terminal for a response.
   */
      static int
! can_get_termresponse()
  {
      return cur_tmode == TMODE_RAW
            && termcap_active
--- 2997,3003 ----
   * Return TRUE if we can request the terminal for a response.
   */
      static int
! can_get_termresponse(void)
  {
      return cur_tmode == TMODE_RAW
            && termcap_active
***************
*** 3021,3027 ****
   * Return TRUE if any of the requests are in STATUS_SENT.
   */
      static int
! termrequest_any_pending()
  {
      int           i;
      time_t  now = time(NULL);
--- 3021,3027 ----
   * Return TRUE if any of the requests are in STATUS_SENT.
   */
      static int
! termrequest_any_pending(void)
  {
      int           i;
      time_t  now = time(NULL);
***************
*** 4367,4373 ****
  # endif
  
      int
! blink_state_is_inverted()
  {
  #ifdef FEAT_TERMRESPONSE
      return rbm_status.tr_progress == STATUS_GOT
--- 4367,4373 ----
  # endif
  
      int
! blink_state_is_inverted(void)
  {
  #ifdef FEAT_TERMRESPONSE
      return rbm_status.tr_progress == STATUS_GOT
*** ../vim-9.0.1335/src/terminal.c      2023-01-25 21:05:35.131042802 +0000
--- src/terminal.c      2023-02-21 14:21:21.300350207 +0000
***************
*** 392,398 ****
   * Flush messages on channels.
   */
      static void
! term_flush_messages()
  {
      mch_check_messages();
      parse_queued_messages();
--- 392,398 ----
   * Flush messages on channels.
   */
      static void
! term_flush_messages(void)
  {
      mch_check_messages();
      parse_queued_messages();
***************
*** 1104,1110 ****
  }
  
      void
! free_unused_terminals()
  {
      while (terminals_to_free != NULL)
      {
--- 1104,1110 ----
  }
  
      void
! free_unused_terminals(void)
  {
      while (terminals_to_free != NULL)
      {
***************
*** 2157,2163 ****
   * Restores updating the terminal window.
   */
      void
! term_enter_job_mode()
  {
      term_T    *term = curbuf->b_term;
  
--- 2157,2163 ----
   * Restores updating the terminal window.
   */
      void
! term_enter_job_mode(void)
  {
      term_T    *term = curbuf->b_term;
  
***************
*** 2224,2230 ****
   * closed and ++close was used.  This may even happen before we get here.
   */
      static int
! term_vgetc()
  {
      int c;
      int save_State = State;
--- 2224,2230 ----
   * closed and ++close was used.  This may even happen before we get here.
   */
      static int
! term_vgetc(void)
  {
      int c;
      int save_State = State;
***************
*** 2451,2457 ****
   * terminal should be displayed.
   */
      int
! terminal_is_active()
  {
      return in_terminal_loop != NULL;
  }
--- 2451,2457 ----
   * terminal should be displayed.
   */
      int
! terminal_is_active(void)
  {
      return in_terminal_loop != NULL;
  }
***************
*** 2609,2615 ****
   * we may want to change state.
   */
      void
! term_win_entered()
  {
      term_T *term = curbuf->b_term;
  
--- 2609,2615 ----
   * we may want to change state.
   */
      void
! term_win_entered(void)
  {
      term_T *term = curbuf->b_term;
  
***************
*** 3702,3708 ****
   * channel was closed.
   */
      void
! term_check_channel_closed_recently()
  {
      term_T *term;
      term_T *next_term;
--- 3702,3708 ----
   * channel was closed.
   */
      void
! term_check_channel_closed_recently(void)
  {
      term_T *term;
      term_T *next_term;
***************
*** 4203,4209 ****
   * or when any highlight is changed.
   */
      void
! term_update_wincolor_all()
  {
      win_T      *wp = NULL;
      int                did_curwin = FALSE;
--- 4203,4209 ----
   * or when any highlight is changed.
   */
      void
! term_update_wincolor_all(void)
  {
      win_T      *wp = NULL;
      int                did_curwin = FALSE;
***************
*** 4300,4306 ****
   * "ansi_colors" argument in term_start()) shall be applied.
   */
      static int
! term_use_palette()
  {
      if (0
  #ifdef FEAT_GUI
--- 4300,4306 ----
   * "ansi_colors" argument in term_start()) shall be applied.
   */
      static int
! term_use_palette(void)
  {
      if (0
  #ifdef FEAT_GUI
***************
*** 4866,4872 ****
   * Called when option 'termguicolors' is changed.
   */
      void
! term_update_palette_all()
  {
      term_T *term;
  
--- 4866,4872 ----
   * Called when option 'termguicolors' is changed.
   */
      void
! term_update_palette_all(void)
  {
      term_T *term;
  
***************
*** 5816,5822 ****
   * Return FAIL when this is not possible.
   */
      int
! term_swap_diff()
  {
      term_T    *term = curbuf->b_term;
      linenr_T  line_count;
--- 5816,5822 ----
   * Return FAIL when this is not possible.
   */
      int
! term_swap_diff(void)
  {
      term_T    *term = curbuf->b_term;
      linenr_T  line_count;
*** ../vim-9.0.1335/src/time.c  2023-01-25 21:05:35.131042802 +0000
--- src/time.c  2023-02-21 14:21:21.300350207 +0000
***************
*** 802,808 ****
  
  # if defined(EXITFREE) || defined(PROTO)
      void
! timer_free_all()
  {
      while (first_timer != NULL)
      {
--- 802,808 ----
  
  # if defined(EXITFREE) || defined(PROTO)
      void
! timer_free_all(void)
  {
      while (first_timer != NULL)
      {
*** ../vim-9.0.1335/src/userfunc.c      2023-02-18 15:31:49.134360548 +0000
--- src/userfunc.c      2023-02-21 14:21:21.300350207 +0000
***************
*** 36,42 ****
  static void handle_defer_one(funccall_T *funccal);
  
      void
! func_init()
  {
      hash_init(&func_hashtab);
  }
--- 36,42 ----
  static void handle_defer_one(funccall_T *funccal);
  
      void
! func_init(void)
  {
      hash_init(&func_hashtab);
  }
***************
*** 2709,2715 ****
   * current_funccal.
   */
      void
! remove_funccal()
  {
      funccall_T *fc = current_funccal;
  
--- 2709,2715 ----
   * current_funccal.
   */
      void
! remove_funccal(void)
  {
      funccall_T *fc = current_funccal;
  
***************
*** 6662,6668 ****
   * Return NULL if there is no current funccal.
   */
      hashtab_T *
! get_funccal_local_ht()
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
--- 6662,6668 ----
   * Return NULL if there is no current funccal.
   */
      hashtab_T *
! get_funccal_local_ht(void)
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
***************
*** 6674,6680 ****
   * Return NULL if there is no current funccal.
   */
      dictitem_T *
! get_funccal_local_var()
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
--- 6674,6680 ----
   * Return NULL if there is no current funccal.
   */
      dictitem_T *
! get_funccal_local_var(void)
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
***************
*** 6686,6692 ****
   * Return NULL if there is no current funccal.
   */
      hashtab_T *
! get_funccal_args_ht()
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
--- 6686,6692 ----
   * Return NULL if there is no current funccal.
   */
      hashtab_T *
! get_funccal_args_ht(void)
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
***************
*** 6698,6704 ****
   * Return NULL if there is no current funccal.
   */
      dictitem_T *
! get_funccal_args_var()
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
--- 6698,6704 ----
   * Return NULL if there is no current funccal.
   */
      dictitem_T *
! get_funccal_args_var(void)
  {
      if (current_funccal == NULL || current_funccal->fc_l_vars.dv_refcount == 
0)
        return NULL;
*** ../vim-9.0.1335/src/vim.h   2023-02-20 12:16:33.340269410 +0000
--- src/vim.h   2023-02-21 14:21:21.300350207 +0000
***************
*** 2287,2292 ****
--- 2287,2295 ----
  /*
   * Type for the callback function that is invoked after an option value is
   * changed to validate and apply the new value.
+  *
+  * Returns NULL if the option value is valid is successfully applied.
+  * Otherwise returns an error message.
   */
  typedef char *(*opt_did_set_cb_T)(optset_T *args);
  
*** ../vim-9.0.1335/src/vim9compile.c   2023-02-21 12:38:46.827436713 +0000
--- src/vim9compile.c   2023-02-21 14:21:21.300350207 +0000
***************
*** 291,297 ****
   * Return TRUE if the script context is Vim9 script.
   */
      int
! script_is_vim9()
  {
      return SCRIPT_ITEM(current_sctx.sc_sid)->sn_version == 
SCRIPT_VERSION_VIM9;
  }
--- 291,297 ----
   * Return TRUE if the script context is Vim9 script.
   */
      int
! script_is_vim9(void)
  {
      return SCRIPT_ITEM(current_sctx.sc_sid)->sn_version == 
SCRIPT_VERSION_VIM9;
  }
*** ../vim-9.0.1335/src/window.c        2023-02-15 16:45:22.977959441 +0000
--- src/window.c        2023-02-21 14:21:21.304350207 +0000
***************
*** 824,830 ****
   * Otherwise return OK.
   */
      static int
! check_split_disallowed()
  {
      if (split_disallowed > 0)
      {
--- 824,830 ----
   * Otherwise return OK.
   */
      static int
! check_split_disallowed(void)
  {
      if (split_disallowed > 0)
      {
***************
*** 6014,6020 ****
   * Make the current window show at least one line and one column.
   */
      void
! win_ensure_size()
  {
      if (curwin->w_height == 0)
        win_setheight(1);
--- 6014,6020 ----
   * Make the current window show at least one line and one column.
   */
      void
! win_ensure_size(void)
  {
      if (curwin->w_height == 0)
        win_setheight(1);
***************
*** 7357,7363 ****
   * check_lnums() must have been called first!
   */
      void
! reset_lnums()
  {
      win_T     *wp;
      tabpage_T *tp;
--- 7357,7363 ----
   * check_lnums() must have been called first!
   */
      void
! reset_lnums(void)
  {
      win_T     *wp;
      tabpage_T *tp;
*** ../vim-9.0.1335/src/version.c       2023-02-21 13:33:14.240461686 +0000
--- src/version.c       2023-02-21 14:23:00.324352302 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1336,
  /**/

-- 
If you feel lonely, try schizophrenia.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230221142814.2A58F1C07A0%40moolenaar.net.

Raspunde prin e-mail lui