Karsten Hopp 50ee97
To: vim_dev@googlegroups.com
Karsten Hopp 50ee97
Subject: Patch 7.3.1130
Karsten Hopp 50ee97
Fcc: outbox
Karsten Hopp 50ee97
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 50ee97
Mime-Version: 1.0
Karsten Hopp 50ee97
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 50ee97
Content-Transfer-Encoding: 8bit
Karsten Hopp 50ee97
------------
Karsten Hopp 50ee97
Karsten Hopp 50ee97
Patch 7.3.1130 (after 7.3.1129)
Karsten Hopp 50ee97
Problem:    Can't build with anything but huge features.
Karsten Hopp 50ee97
Solution:   Check for FEAT_PROFILE. (Yasuhiro Matsumoto)
Karsten Hopp 50ee97
Files:	    src/ex_docmd.c, src/structs.h, src/syntax.c
Karsten Hopp 50ee97
Karsten Hopp 50ee97
Karsten Hopp 50ee97
*** ../vim-7.3.1129/src/ex_docmd.c	2013-06-06 14:01:35.000000000 +0200
Karsten Hopp 50ee97
--- src/ex_docmd.c	2013-06-06 14:49:26.000000000 +0200
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 242,248 ****
Karsten Hopp 50ee97
  # define ex_syntax		ex_ni
Karsten Hopp 50ee97
  # define ex_ownsyntax		ex_ni
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
! #if !defined(FEAT_SYN_HL) || !defined(FEAT_RELTIME)
Karsten Hopp 50ee97
  # define ex_syntime		ex_ni
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  #ifndef FEAT_SPELL
Karsten Hopp 50ee97
--- 242,248 ----
Karsten Hopp 50ee97
  # define ex_syntax		ex_ni
Karsten Hopp 50ee97
  # define ex_ownsyntax		ex_ni
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
! #if !defined(FEAT_SYN_HL) || !defined(FEAT_PROFILE)
Karsten Hopp 50ee97
  # define ex_syntime		ex_ni
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  #ifndef FEAT_SPELL
Karsten Hopp 50ee97
*** ../vim-7.3.1129/src/structs.h	2013-06-06 14:01:35.000000000 +0200
Karsten Hopp 50ee97
--- src/structs.h	2013-06-06 14:49:26.000000000 +0200
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 1206,1212 ****
Karsten Hopp 50ee97
  typedef struct qf_info_S qf_info_T;
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
  /*
Karsten Hopp 50ee97
   * Used for :syntime: timing of executing a syntax pattern.
Karsten Hopp 50ee97
   */
Karsten Hopp 50ee97
--- 1206,1212 ----
Karsten Hopp 50ee97
  typedef struct qf_info_S qf_info_T;
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
  /*
Karsten Hopp 50ee97
   * Used for :syntime: timing of executing a syntax pattern.
Karsten Hopp 50ee97
   */
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 1242,1248 ****
Karsten Hopp 50ee97
      long	b_syn_sync_linebreaks;	/* offset for multi-line pattern */
Karsten Hopp 50ee97
      char_u	*b_syn_linecont_pat;	/* line continuation pattern */
Karsten Hopp 50ee97
      regprog_T	*b_syn_linecont_prog;	/* line continuation program */
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
      syn_time_T  b_syn_linecont_time;
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
      int		b_syn_linecont_ic;	/* ignore-case flag for above */
Karsten Hopp 50ee97
--- 1242,1248 ----
Karsten Hopp 50ee97
      long	b_syn_sync_linebreaks;	/* offset for multi-line pattern */
Karsten Hopp 50ee97
      char_u	*b_syn_linecont_pat;	/* line continuation pattern */
Karsten Hopp 50ee97
      regprog_T	*b_syn_linecont_prog;	/* line continuation program */
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
      syn_time_T  b_syn_linecont_time;
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
      int		b_syn_linecont_ic;	/* ignore-case flag for above */
Karsten Hopp 50ee97
*** ../vim-7.3.1129/src/syntax.c	2013-06-06 14:01:35.000000000 +0200
Karsten Hopp 50ee97
--- src/syntax.c	2013-06-06 14:49:26.000000000 +0200
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 153,159 ****
Karsten Hopp 50ee97
      short	 sp_syn_match_id;	/* highlight group ID of pattern */
Karsten Hopp 50ee97
      char_u	*sp_pattern;		/* regexp to match, pattern */
Karsten Hopp 50ee97
      regprog_T	*sp_prog;		/* regexp to match, program */
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
      syn_time_T	 sp_time;
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
      int		 sp_ic;			/* ignore-case flag for sp_prog */
Karsten Hopp 50ee97
--- 153,159 ----
Karsten Hopp 50ee97
      short	 sp_syn_match_id;	/* highlight group ID of pattern */
Karsten Hopp 50ee97
      char_u	*sp_pattern;		/* regexp to match, pattern */
Karsten Hopp 50ee97
      regprog_T	*sp_prog;		/* regexp to match, program */
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
      syn_time_T	 sp_time;
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
      int		 sp_ic;			/* ignore-case flag for sp_prog */
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 400,406 ****
Karsten Hopp 50ee97
  static int in_id_list __ARGS((stateitem_T *item, short *cont_list, struct sp_syn *ssp, int contained));
Karsten Hopp 50ee97
  static int push_current_state __ARGS((int idx));
Karsten Hopp 50ee97
  static void pop_current_state __ARGS((void));
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
  static void syn_clear_time __ARGS((syn_time_T *tt));
Karsten Hopp 50ee97
  static void syntime_clear __ARGS((void));
Karsten Hopp 50ee97
  #ifdef __BORLANDC__
Karsten Hopp 50ee97
--- 400,406 ----
Karsten Hopp 50ee97
  static int in_id_list __ARGS((stateitem_T *item, short *cont_list, struct sp_syn *ssp, int contained));
Karsten Hopp 50ee97
  static int push_current_state __ARGS((int idx));
Karsten Hopp 50ee97
  static void pop_current_state __ARGS((void));
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
  static void syn_clear_time __ARGS((syn_time_T *tt));
Karsten Hopp 50ee97
  static void syntime_clear __ARGS((void));
Karsten Hopp 50ee97
  #ifdef __BORLANDC__
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 3261,3267 ****
Karsten Hopp 50ee97
      syn_time_T  *st;
Karsten Hopp 50ee97
  {
Karsten Hopp 50ee97
      int r;
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
      proftime_T	pt;
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
      if (syn_time_on)
Karsten Hopp 50ee97
--- 3261,3267 ----
Karsten Hopp 50ee97
      syn_time_T  *st;
Karsten Hopp 50ee97
  {
Karsten Hopp 50ee97
      int r;
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
      proftime_T	pt;
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
      if (syn_time_on)
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 3271,3277 ****
Karsten Hopp 50ee97
      rmp->rmm_maxcol = syn_buf->b_p_smc;
Karsten Hopp 50ee97
      r = vim_regexec_multi(rmp, syn_win, syn_buf, lnum, col, NULL);
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
      if (syn_time_on)
Karsten Hopp 50ee97
      {
Karsten Hopp 50ee97
  	profile_end(&pt;;
Karsten Hopp 50ee97
--- 3271,3277 ----
Karsten Hopp 50ee97
      rmp->rmm_maxcol = syn_buf->b_p_smc;
Karsten Hopp 50ee97
      r = vim_regexec_multi(rmp, syn_win, syn_buf, lnum, col, NULL);
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
      if (syn_time_on)
Karsten Hopp 50ee97
      {
Karsten Hopp 50ee97
  	profile_end(&pt;;
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 5658,5664 ****
Karsten Hopp 50ee97
      if (ci->sp_prog == NULL)
Karsten Hopp 50ee97
  	return NULL;
Karsten Hopp 50ee97
      ci->sp_ic = curwin->w_s->b_syn_ic;
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
      syn_clear_time(&ci->sp_time);
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
--- 5658,5664 ----
Karsten Hopp 50ee97
      if (ci->sp_prog == NULL)
Karsten Hopp 50ee97
  	return NULL;
Karsten Hopp 50ee97
      ci->sp_ic = curwin->w_s->b_syn_ic;
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
      syn_clear_time(&ci->sp_time);
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 5837,5843 ****
Karsten Hopp 50ee97
  		curwin->w_s->b_syn_linecont_prog =
Karsten Hopp 50ee97
  		       vim_regcomp(curwin->w_s->b_syn_linecont_pat, RE_MAGIC);
Karsten Hopp 50ee97
  		p_cpo = cpo_save;
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
  		syn_clear_time(&curwin->w_s->b_syn_linecont_time);
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
--- 5837,5843 ----
Karsten Hopp 50ee97
  		curwin->w_s->b_syn_linecont_prog =
Karsten Hopp 50ee97
  		       vim_regcomp(curwin->w_s->b_syn_linecont_pat, RE_MAGIC);
Karsten Hopp 50ee97
  		p_cpo = cpo_save;
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
  		syn_clear_time(&curwin->w_s->b_syn_linecont_time);
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 6526,6532 ****
Karsten Hopp 50ee97
  }
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
! #ifdef FEAT_RELTIME
Karsten Hopp 50ee97
  /*
Karsten Hopp 50ee97
   * ":syntime".
Karsten Hopp 50ee97
   */
Karsten Hopp 50ee97
--- 6526,6532 ----
Karsten Hopp 50ee97
  }
Karsten Hopp 50ee97
  #endif
Karsten Hopp 50ee97
  
Karsten Hopp 50ee97
! #ifdef FEAT_PROFILE
Karsten Hopp 50ee97
  /*
Karsten Hopp 50ee97
   * ":syntime".
Karsten Hopp 50ee97
   */
Karsten Hopp 50ee97
*** ../vim-7.3.1129/src/version.c	2013-06-06 14:01:36.000000000 +0200
Karsten Hopp 50ee97
--- src/version.c	2013-06-06 14:54:31.000000000 +0200
Karsten Hopp 50ee97
***************
Karsten Hopp 50ee97
*** 730,731 ****
Karsten Hopp 50ee97
--- 730,733 ----
Karsten Hopp 50ee97
  {   /* Add new patch number below this line */
Karsten Hopp 50ee97
+ /**/
Karsten Hopp 50ee97
+     1130,
Karsten Hopp 50ee97
  /**/
Karsten Hopp 50ee97
Karsten Hopp 50ee97
-- 
Karsten Hopp 50ee97
From "know your smileys":
Karsten Hopp 50ee97
 @:-()	Elvis Presley
Karsten Hopp 50ee97
Karsten Hopp 50ee97
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 50ee97
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 50ee97
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 50ee97
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///