Karsten Hopp a34cda
To: vim_dev@googlegroups.com
Karsten Hopp a34cda
Subject: Patch 7.3.738
Karsten Hopp a34cda
Fcc: outbox
Karsten Hopp a34cda
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a34cda
Mime-Version: 1.0
Karsten Hopp a34cda
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a34cda
Content-Transfer-Encoding: 8bit
Karsten Hopp a34cda
------------
Karsten Hopp a34cda
Karsten Hopp a34cda
Patch 7.3.738 (after 7.3.730)
Karsten Hopp a34cda
Problem:    Unused function argument.
Karsten Hopp a34cda
Solution:   Remove it. (Christian Brabandt)
Karsten Hopp a34cda
Files:	    src/quickfix.c
Karsten Hopp a34cda
Karsten Hopp a34cda
Karsten Hopp a34cda
*** ../vim-7.3.737/src/quickfix.c	2012-11-28 15:25:28.000000000 +0100
Karsten Hopp a34cda
--- src/quickfix.c	2012-11-28 17:36:26.000000000 +0100
Karsten Hopp a34cda
***************
Karsten Hopp a34cda
*** 107,113 ****
Karsten Hopp a34cda
  };
Karsten Hopp a34cda
  
Karsten Hopp a34cda
  static int	qf_init_ext __ARGS((qf_info_T *qi, char_u *efile, buf_T *buf, typval_T *tv, char_u *errorformat, int newlist, linenr_T lnumfirst, linenr_T lnumlast, char_u *qf_title));
Karsten Hopp a34cda
! static void	qf_new_list __ARGS((qf_info_T *qi, char_u *qf_title, win_T *wp));
Karsten Hopp a34cda
  static void	ll_free_all __ARGS((qf_info_T **pqi));
Karsten Hopp a34cda
  static int	qf_add_entry __ARGS((qf_info_T *qi, qfline_T **prevp, char_u *dir, char_u *fname, int bufnum, char_u *mesg, long lnum, int col, int vis_col, char_u *pattern, int nr, int type, int valid));
Karsten Hopp a34cda
  static qf_info_T *ll_new_list __ARGS((void));
Karsten Hopp a34cda
--- 107,113 ----
Karsten Hopp a34cda
  };
Karsten Hopp a34cda
  
Karsten Hopp a34cda
  static int	qf_init_ext __ARGS((qf_info_T *qi, char_u *efile, buf_T *buf, typval_T *tv, char_u *errorformat, int newlist, linenr_T lnumfirst, linenr_T lnumlast, char_u *qf_title));
Karsten Hopp a34cda
! static void	qf_new_list __ARGS((qf_info_T *qi, char_u *qf_title));
Karsten Hopp a34cda
  static void	ll_free_all __ARGS((qf_info_T **pqi));
Karsten Hopp a34cda
  static int	qf_add_entry __ARGS((qf_info_T *qi, qfline_T **prevp, char_u *dir, char_u *fname, int bufnum, char_u *mesg, long lnum, int col, int vis_col, char_u *pattern, int nr, int type, int valid));
Karsten Hopp a34cda
  static qf_info_T *ll_new_list __ARGS((void));
Karsten Hopp a34cda
***************
Karsten Hopp a34cda
*** 266,272 ****
Karsten Hopp a34cda
  
Karsten Hopp a34cda
      if (newlist || qi->qf_curlist == qi->qf_listcount)
Karsten Hopp a34cda
  	/* make place for a new list */
Karsten Hopp a34cda
! 	qf_new_list(qi, qf_title, curwin);
Karsten Hopp a34cda
      else if (qi->qf_lists[qi->qf_curlist].qf_count > 0)
Karsten Hopp a34cda
  	/* Adding to existing list, find last entry. */
Karsten Hopp a34cda
  	for (qfprev = qi->qf_lists[qi->qf_curlist].qf_start;
Karsten Hopp a34cda
--- 266,272 ----
Karsten Hopp a34cda
  
Karsten Hopp a34cda
      if (newlist || qi->qf_curlist == qi->qf_listcount)
Karsten Hopp a34cda
  	/* make place for a new list */
Karsten Hopp a34cda
! 	qf_new_list(qi, qf_title);
Karsten Hopp a34cda
      else if (qi->qf_lists[qi->qf_curlist].qf_count > 0)
Karsten Hopp a34cda
  	/* Adding to existing list, find last entry. */
Karsten Hopp a34cda
  	for (qfprev = qi->qf_lists[qi->qf_curlist].qf_start;
Karsten Hopp a34cda
***************
Karsten Hopp a34cda
*** 885,894 ****
Karsten Hopp a34cda
   * Prepare for adding a new quickfix list.
Karsten Hopp a34cda
   */
Karsten Hopp a34cda
      static void
Karsten Hopp a34cda
! qf_new_list(qi, qf_title, wp)
Karsten Hopp a34cda
      qf_info_T	*qi;
Karsten Hopp a34cda
      char_u	*qf_title;
Karsten Hopp a34cda
-     win_T	*wp;
Karsten Hopp a34cda
  {
Karsten Hopp a34cda
      int		i;
Karsten Hopp a34cda
  
Karsten Hopp a34cda
--- 885,893 ----
Karsten Hopp a34cda
   * Prepare for adding a new quickfix list.
Karsten Hopp a34cda
   */
Karsten Hopp a34cda
      static void
Karsten Hopp a34cda
! qf_new_list(qi, qf_title)
Karsten Hopp a34cda
      qf_info_T	*qi;
Karsten Hopp a34cda
      char_u	*qf_title;
Karsten Hopp a34cda
  {
Karsten Hopp a34cda
      int		i;
Karsten Hopp a34cda
  
Karsten Hopp a34cda
***************
Karsten Hopp a34cda
*** 3187,3193 ****
Karsten Hopp a34cda
  	 eap->cmdidx != CMD_vimgrepadd && eap->cmdidx != CMD_lvimgrepadd)
Karsten Hopp a34cda
  					|| qi->qf_curlist == qi->qf_listcount)
Karsten Hopp a34cda
  	/* make place for a new list */
Karsten Hopp a34cda
! 	qf_new_list(qi, *eap->cmdlinep, curwin);
Karsten Hopp a34cda
      else if (qi->qf_lists[qi->qf_curlist].qf_count > 0)
Karsten Hopp a34cda
  	/* Adding to existing list, find last entry. */
Karsten Hopp a34cda
  	for (prevp = qi->qf_lists[qi->qf_curlist].qf_start;
Karsten Hopp a34cda
--- 3186,3192 ----
Karsten Hopp a34cda
  	 eap->cmdidx != CMD_vimgrepadd && eap->cmdidx != CMD_lvimgrepadd)
Karsten Hopp a34cda
  					|| qi->qf_curlist == qi->qf_listcount)
Karsten Hopp a34cda
  	/* make place for a new list */
Karsten Hopp a34cda
! 	qf_new_list(qi, *eap->cmdlinep);
Karsten Hopp a34cda
      else if (qi->qf_lists[qi->qf_curlist].qf_count > 0)
Karsten Hopp a34cda
  	/* Adding to existing list, find last entry. */
Karsten Hopp a34cda
  	for (prevp = qi->qf_lists[qi->qf_curlist].qf_start;
Karsten Hopp a34cda
***************
Karsten Hopp a34cda
*** 3753,3759 ****
Karsten Hopp a34cda
  
Karsten Hopp a34cda
      if (action == ' ' || qi->qf_curlist == qi->qf_listcount)
Karsten Hopp a34cda
  	/* make place for a new list */
Karsten Hopp a34cda
! 	qf_new_list(qi, title, wp);
Karsten Hopp a34cda
      else if (action == 'a' && qi->qf_lists[qi->qf_curlist].qf_count > 0)
Karsten Hopp a34cda
  	/* Adding to existing list, find last entry. */
Karsten Hopp a34cda
  	for (prevp = qi->qf_lists[qi->qf_curlist].qf_start;
Karsten Hopp a34cda
--- 3752,3758 ----
Karsten Hopp a34cda
  
Karsten Hopp a34cda
      if (action == ' ' || qi->qf_curlist == qi->qf_listcount)
Karsten Hopp a34cda
  	/* make place for a new list */
Karsten Hopp a34cda
! 	qf_new_list(qi, title);
Karsten Hopp a34cda
      else if (action == 'a' && qi->qf_lists[qi->qf_curlist].qf_count > 0)
Karsten Hopp a34cda
  	/* Adding to existing list, find last entry. */
Karsten Hopp a34cda
  	for (prevp = qi->qf_lists[qi->qf_curlist].qf_start;
Karsten Hopp a34cda
***************
Karsten Hopp a34cda
*** 4035,4041 ****
Karsten Hopp a34cda
  #endif
Karsten Hopp a34cda
  
Karsten Hopp a34cda
  	/* create a new quickfix list */
Karsten Hopp a34cda
! 	qf_new_list(qi, *eap->cmdlinep, wp);
Karsten Hopp a34cda
  
Karsten Hopp a34cda
  	/* Go through all directories in 'runtimepath' */
Karsten Hopp a34cda
  	p = p_rtp;
Karsten Hopp a34cda
--- 4034,4040 ----
Karsten Hopp a34cda
  #endif
Karsten Hopp a34cda
  
Karsten Hopp a34cda
  	/* create a new quickfix list */
Karsten Hopp a34cda
! 	qf_new_list(qi, *eap->cmdlinep);
Karsten Hopp a34cda
  
Karsten Hopp a34cda
  	/* Go through all directories in 'runtimepath' */
Karsten Hopp a34cda
  	p = p_rtp;
Karsten Hopp a34cda
*** ../vim-7.3.737/src/version.c	2012-11-28 17:34:43.000000000 +0100
Karsten Hopp a34cda
--- src/version.c	2012-11-28 17:37:20.000000000 +0100
Karsten Hopp a34cda
***************
Karsten Hopp a34cda
*** 727,728 ****
Karsten Hopp a34cda
--- 727,730 ----
Karsten Hopp a34cda
  {   /* Add new patch number below this line */
Karsten Hopp a34cda
+ /**/
Karsten Hopp a34cda
+     738,
Karsten Hopp a34cda
  /**/
Karsten Hopp a34cda
Karsten Hopp a34cda
-- 
Karsten Hopp a34cda
From "know your smileys":
Karsten Hopp a34cda
 :-H	Is missing teeth
Karsten Hopp a34cda
Karsten Hopp a34cda
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a34cda
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a34cda
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp a34cda
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///