Karsten Hopp 2d7f97
To: vim_dev@googlegroups.com
Karsten Hopp 2d7f97
Subject: Patch 7.3.154
Karsten Hopp 2d7f97
Fcc: outbox
Karsten Hopp 2d7f97
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 2d7f97
Mime-Version: 1.0
Karsten Hopp 2d7f97
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 2d7f97
Content-Transfer-Encoding: 8bit
Karsten Hopp 2d7f97
------------
Karsten Hopp 2d7f97
Karsten Hopp 2d7f97
Patch 7.3.154 (after 7.3.148)
Karsten Hopp 2d7f97
Problem:    Can't compile with tiny features. (Tony Mechelynck)
Karsten Hopp 2d7f97
Solution:   Move #define outside of #ifdef.
Karsten Hopp 2d7f97
Files:	    src/syntax.c
Karsten Hopp 2d7f97
Karsten Hopp 2d7f97
Karsten Hopp 2d7f97
*** ../vim-7.3.153/src/syntax.c	2011-04-01 14:44:54.000000000 +0200
Karsten Hopp 2d7f97
--- src/syntax.c	2011-04-02 15:11:47.000000000 +0200
Karsten Hopp 2d7f97
***************
Karsten Hopp 2d7f97
*** 68,73 ****
Karsten Hopp 2d7f97
--- 68,75 ----
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
  #define HL_TABLE() ((struct hl_group *)((highlight_ga.ga_data)))
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
+ #define MAX_HL_ID       20000	/* maximum value for a highlight ID. */
Karsten Hopp 2d7f97
+ 
Karsten Hopp 2d7f97
  #ifdef FEAT_CMDL_COMPL
Karsten Hopp 2d7f97
  /* Flags to indicate an additional string for highlight name completion. */
Karsten Hopp 2d7f97
  static int include_none = 0;	/* when 1 include "None" */
Karsten Hopp 2d7f97
***************
Karsten Hopp 2d7f97
*** 225,236 ****
Karsten Hopp 2d7f97
   * 22000 - 22999  CONTAINED indicator (current_syn_inc_tag added)
Karsten Hopp 2d7f97
   * 23000 - 32767  cluster IDs (subtract SYNID_CLUSTER for the cluster ID)
Karsten Hopp 2d7f97
   */
Karsten Hopp 2d7f97
! #define SYNID_ALLBUT	20000	    /* syntax group ID for contains=ALLBUT */
Karsten Hopp 2d7f97
  #define SYNID_TOP	21000	    /* syntax group ID for contains=TOP */
Karsten Hopp 2d7f97
  #define SYNID_CONTAINED	22000	    /* syntax group ID for contains=CONTAINED */
Karsten Hopp 2d7f97
  #define SYNID_CLUSTER	23000	    /* first syntax group ID for clusters */
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
- #define MAX_SYNID       SYNID_ALLBUT
Karsten Hopp 2d7f97
  #define MAX_SYN_INC_TAG	999	    /* maximum before the above overflow */
Karsten Hopp 2d7f97
  #define MAX_CLUSTER_ID  (32767 - SYNID_CLUSTER)
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
--- 227,237 ----
Karsten Hopp 2d7f97
   * 22000 - 22999  CONTAINED indicator (current_syn_inc_tag added)
Karsten Hopp 2d7f97
   * 23000 - 32767  cluster IDs (subtract SYNID_CLUSTER for the cluster ID)
Karsten Hopp 2d7f97
   */
Karsten Hopp 2d7f97
! #define SYNID_ALLBUT	MAX_HL_ID   /* syntax group ID for contains=ALLBUT */
Karsten Hopp 2d7f97
  #define SYNID_TOP	21000	    /* syntax group ID for contains=TOP */
Karsten Hopp 2d7f97
  #define SYNID_CONTAINED	22000	    /* syntax group ID for contains=CONTAINED */
Karsten Hopp 2d7f97
  #define SYNID_CLUSTER	23000	    /* first syntax group ID for clusters */
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
  #define MAX_SYN_INC_TAG	999	    /* maximum before the above overflow */
Karsten Hopp 2d7f97
  #define MAX_CLUSTER_ID  (32767 - SYNID_CLUSTER)
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
***************
Karsten Hopp 2d7f97
*** 6462,6468 ****
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
  #endif /* FEAT_SYN_HL */
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
- 
Karsten Hopp 2d7f97
  /**************************************
Karsten Hopp 2d7f97
   *  Highlighting stuff		      *
Karsten Hopp 2d7f97
   **************************************/
Karsten Hopp 2d7f97
--- 6463,6468 ----
Karsten Hopp 2d7f97
***************
Karsten Hopp 2d7f97
*** 8996,9004 ****
Karsten Hopp 2d7f97
  	highlight_ga.ga_growsize = 10;
Karsten Hopp 2d7f97
      }
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
!     if (highlight_ga.ga_len >= MAX_SYNID)
Karsten Hopp 2d7f97
      {
Karsten Hopp 2d7f97
! 	EMSG(_("E849: Too many syntax groups"));
Karsten Hopp 2d7f97
  	vim_free(name);
Karsten Hopp 2d7f97
  	return 0;
Karsten Hopp 2d7f97
      }
Karsten Hopp 2d7f97
--- 8996,9004 ----
Karsten Hopp 2d7f97
  	highlight_ga.ga_growsize = 10;
Karsten Hopp 2d7f97
      }
Karsten Hopp 2d7f97
  
Karsten Hopp 2d7f97
!     if (highlight_ga.ga_len >= MAX_HL_ID)
Karsten Hopp 2d7f97
      {
Karsten Hopp 2d7f97
! 	EMSG(_("E849: Too many highlight and syntax groups"));
Karsten Hopp 2d7f97
  	vim_free(name);
Karsten Hopp 2d7f97
  	return 0;
Karsten Hopp 2d7f97
      }
Karsten Hopp 2d7f97
*** ../vim-7.3.153/src/version.c	2011-04-02 14:44:50.000000000 +0200
Karsten Hopp 2d7f97
--- src/version.c	2011-04-02 14:52:33.000000000 +0200
Karsten Hopp 2d7f97
***************
Karsten Hopp 2d7f97
*** 716,717 ****
Karsten Hopp 2d7f97
--- 716,719 ----
Karsten Hopp 2d7f97
  {   /* Add new patch number below this line */
Karsten Hopp 2d7f97
+ /**/
Karsten Hopp 2d7f97
+     154,
Karsten Hopp 2d7f97
  /**/
Karsten Hopp 2d7f97
Karsten Hopp 2d7f97
-- 
Karsten Hopp 2d7f97
BEDEVERE:        Why do you think she is a witch?
Karsten Hopp 2d7f97
SECOND VILLAGER: She turned me into a newt.
Karsten Hopp 2d7f97
BEDEVERE:        A newt?
Karsten Hopp 2d7f97
SECOND VILLAGER: (After looking at himself for some time) I got better.
Karsten Hopp 2d7f97
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 2d7f97
Karsten Hopp 2d7f97
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 2d7f97
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 2d7f97
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 2d7f97
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///