Karsten Hopp 1b6fde
To: vim_dev@googlegroups.com
Karsten Hopp 1b6fde
Subject: Patch 7.3.1031
Karsten Hopp 1b6fde
Fcc: outbox
Karsten Hopp 1b6fde
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 1b6fde
Mime-Version: 1.0
Karsten Hopp 1b6fde
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 1b6fde
Content-Transfer-Encoding: 8bit
Karsten Hopp 1b6fde
------------
Karsten Hopp 1b6fde
Karsten Hopp 1b6fde
Patch 7.3.1031
Karsten Hopp 1b6fde
Problem:    Compiler warnings for shadowed variable. (John Little)
Karsten Hopp 1b6fde
Solution:   Move the variable declarations to the scope where they are used.
Karsten Hopp 1b6fde
Files:	    src/regexp_nfa.c
Karsten Hopp 1b6fde
Karsten Hopp 1b6fde
Karsten Hopp 1b6fde
*** ../vim-7.3.1030/src/regexp_nfa.c	2013-05-26 23:13:03.000000000 +0200
Karsten Hopp 1b6fde
--- src/regexp_nfa.c	2013-05-27 11:15:35.000000000 +0200
Karsten Hopp 1b6fde
***************
Karsten Hopp 1b6fde
*** 2999,3005 ****
Karsten Hopp 1b6fde
      nfa_list_T	*nextlist;
Karsten Hopp 1b6fde
      nfa_list_T	*neglist;
Karsten Hopp 1b6fde
      int		*listids = NULL;
Karsten Hopp 1b6fde
-     int		j = 0;
Karsten Hopp 1b6fde
  #ifdef NFA_REGEXP_DEBUG_LOG
Karsten Hopp 1b6fde
      FILE	*debug = fopen(NFA_REGEXP_DEBUG_LOG, "a");
Karsten Hopp 1b6fde
  
Karsten Hopp 1b6fde
--- 2999,3004 ----
Karsten Hopp 1b6fde
***************
Karsten Hopp 1b6fde
*** 3149,3154 ****
Karsten Hopp 1b6fde
--- 3148,3156 ----
Karsten Hopp 1b6fde
  	    switch (t->state->c)
Karsten Hopp 1b6fde
  	    {
Karsten Hopp 1b6fde
  	    case NFA_MATCH:
Karsten Hopp 1b6fde
+ 	      {
Karsten Hopp 1b6fde
+ 		int j;
Karsten Hopp 1b6fde
+ 
Karsten Hopp 1b6fde
  		nfa_match = TRUE;
Karsten Hopp 1b6fde
  		submatch->in_use = t->sub.in_use;
Karsten Hopp 1b6fde
  		if (REG_MULTI)
Karsten Hopp 1b6fde
***************
Karsten Hopp 1b6fde
*** 3186,3191 ****
Karsten Hopp 1b6fde
--- 3188,3194 ----
Karsten Hopp 1b6fde
  		if (nextlist->n == 0 && neglist->n == 0)
Karsten Hopp 1b6fde
  		    clen = 0;
Karsten Hopp 1b6fde
  		goto nextchar;
Karsten Hopp 1b6fde
+ 	      }
Karsten Hopp 1b6fde
  
Karsten Hopp 1b6fde
  	    case NFA_END_INVISIBLE:
Karsten Hopp 1b6fde
  		/* This is only encountered after a NFA_START_INVISIBLE node.
Karsten Hopp 1b6fde
***************
Karsten Hopp 1b6fde
*** 3251,3256 ****
Karsten Hopp 1b6fde
--- 3254,3261 ----
Karsten Hopp 1b6fde
  #endif
Karsten Hopp 1b6fde
  		if (result == TRUE)
Karsten Hopp 1b6fde
  		{
Karsten Hopp 1b6fde
+ 		    int j;
Karsten Hopp 1b6fde
+ 
Karsten Hopp 1b6fde
  		    /* Restore position in input text */
Karsten Hopp 1b6fde
  		    reginput = old_reginput;
Karsten Hopp 1b6fde
  		    regline = old_regline;
Karsten Hopp 1b6fde
*** ../vim-7.3.1030/src/version.c	2013-05-26 23:13:03.000000000 +0200
Karsten Hopp 1b6fde
--- src/version.c	2013-05-27 11:21:28.000000000 +0200
Karsten Hopp 1b6fde
***************
Karsten Hopp 1b6fde
*** 730,731 ****
Karsten Hopp 1b6fde
--- 730,733 ----
Karsten Hopp 1b6fde
  {   /* Add new patch number below this line */
Karsten Hopp 1b6fde
+ /**/
Karsten Hopp 1b6fde
+     1031,
Karsten Hopp 1b6fde
  /**/
Karsten Hopp 1b6fde
Karsten Hopp 1b6fde
-- 
Karsten Hopp 1b6fde
It's totally unfair to suggest - as many have - that engineers are socially
Karsten Hopp 1b6fde
inept.  Engineers simply have different objectives when it comes to social
Karsten Hopp 1b6fde
interaction.
Karsten Hopp 1b6fde
				(Scott Adams - The Dilbert principle)
Karsten Hopp 1b6fde
Karsten Hopp 1b6fde
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 1b6fde
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 1b6fde
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 1b6fde
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///