Karsten Hopp bdfe31
To: vim_dev@googlegroups.com
Karsten Hopp bdfe31
Subject: Patch 7.3.1116
Karsten Hopp bdfe31
Fcc: outbox
Karsten Hopp bdfe31
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bdfe31
Mime-Version: 1.0
Karsten Hopp bdfe31
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bdfe31
Content-Transfer-Encoding: 8bit
Karsten Hopp bdfe31
------------
Karsten Hopp bdfe31
Karsten Hopp bdfe31
Patch 7.3.1116
Karsten Hopp bdfe31
Problem:    Can't build without Visual mode.
Karsten Hopp bdfe31
Solution:   Add #ifdefs.
Karsten Hopp bdfe31
Files:	    src/regexp_nfa.c
Karsten Hopp bdfe31
Karsten Hopp bdfe31
Karsten Hopp bdfe31
*** ../vim-7.3.1115/src/regexp_nfa.c	2013-06-04 21:42:19.000000000 +0200
Karsten Hopp bdfe31
--- src/regexp_nfa.c	2013-06-05 11:01:40.000000000 +0200
Karsten Hopp bdfe31
***************
Karsten Hopp bdfe31
*** 181,187 ****
Karsten Hopp bdfe31
--- 181,189 ----
Karsten Hopp bdfe31
      NFA_MARK,		/*	Match mark */
Karsten Hopp bdfe31
      NFA_MARK_GT,	/*	Match > mark */
Karsten Hopp bdfe31
      NFA_MARK_LT,	/*	Match < mark */
Karsten Hopp bdfe31
+ #ifdef FEAT_VISUAL
Karsten Hopp bdfe31
      NFA_VISUAL,		/*	Match Visual area */
Karsten Hopp bdfe31
+ #endif
Karsten Hopp bdfe31
  
Karsten Hopp bdfe31
      NFA_FIRST_NL = NFA_ANY + ADD_NL,
Karsten Hopp bdfe31
      NFA_LAST_NL = NFA_NUPPER + ADD_NL,
Karsten Hopp bdfe31
***************
Karsten Hopp bdfe31
*** 963,971 ****
Karsten Hopp bdfe31
--- 965,975 ----
Karsten Hopp bdfe31
  		    EMIT(NFA_CURSOR);
Karsten Hopp bdfe31
  		    break;
Karsten Hopp bdfe31
  
Karsten Hopp bdfe31
+ #ifdef FEAT_VISUAL
Karsten Hopp bdfe31
  		case 'V':
Karsten Hopp bdfe31
  		    EMIT(NFA_VISUAL);
Karsten Hopp bdfe31
  		    break;
Karsten Hopp bdfe31
+ #endif
Karsten Hopp bdfe31
  
Karsten Hopp bdfe31
  		case '[':
Karsten Hopp bdfe31
  		    /* TODO: \%[abc] not supported yet */
Karsten Hopp bdfe31
***************
Karsten Hopp bdfe31
*** 1955,1961 ****
Karsten Hopp bdfe31
--- 1959,1967 ----
Karsten Hopp bdfe31
  	case NFA_MARK_GT:	STRCPY(code, "NFA_MARK_GT "); break;
Karsten Hopp bdfe31
  	case NFA_MARK_LT:	STRCPY(code, "NFA_MARK_LT "); break;
Karsten Hopp bdfe31
  	case NFA_CURSOR:	STRCPY(code, "NFA_CURSOR "); break;
Karsten Hopp bdfe31
+ #ifdef FEAT_VISUAL
Karsten Hopp bdfe31
  	case NFA_VISUAL:	STRCPY(code, "NFA_VISUAL "); break;
Karsten Hopp bdfe31
+ #endif
Karsten Hopp bdfe31
  
Karsten Hopp bdfe31
  	case NFA_STAR:		STRCPY(code, "NFA_STAR "); break;
Karsten Hopp bdfe31
  	case NFA_STAR_NONGREEDY: STRCPY(code, "NFA_STAR_NONGREEDY "); break;
Karsten Hopp bdfe31
***************
Karsten Hopp bdfe31
*** 4790,4801 ****
Karsten Hopp bdfe31
--- 4796,4809 ----
Karsten Hopp bdfe31
  							    t->pim, &listidx);
Karsten Hopp bdfe31
  		break;
Karsten Hopp bdfe31
  
Karsten Hopp bdfe31
+ #ifdef FEAT_VISUAL
Karsten Hopp bdfe31
  	    case NFA_VISUAL:
Karsten Hopp bdfe31
  		result = reg_match_visual();
Karsten Hopp bdfe31
  		if (result)
Karsten Hopp bdfe31
  		    addstate_here(thislist, t->state->out, &t->subs,
Karsten Hopp bdfe31
  							    t->pim, &listidx);
Karsten Hopp bdfe31
  		break;
Karsten Hopp bdfe31
+ #endif
Karsten Hopp bdfe31
  
Karsten Hopp bdfe31
  	    default:	/* regular character */
Karsten Hopp bdfe31
  	      {
Karsten Hopp bdfe31
*** ../vim-7.3.1115/src/version.c	2013-06-04 22:13:45.000000000 +0200
Karsten Hopp bdfe31
--- src/version.c	2013-06-04 23:42:50.000000000 +0200
Karsten Hopp bdfe31
***************
Karsten Hopp bdfe31
*** 730,731 ****
Karsten Hopp bdfe31
--- 730,733 ----
Karsten Hopp bdfe31
  {   /* Add new patch number below this line */
Karsten Hopp bdfe31
+ /**/
Karsten Hopp bdfe31
+     1116,
Karsten Hopp bdfe31
  /**/
Karsten Hopp bdfe31
Karsten Hopp bdfe31
-- 
Karsten Hopp bdfe31
From "know your smileys":
Karsten Hopp bdfe31
 ;-0	Can't find shift key
Karsten Hopp bdfe31
 ,-9	Kann Umschalttaste nicht finden
Karsten Hopp bdfe31
Karsten Hopp bdfe31
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bdfe31
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bdfe31
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bdfe31
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///