comparison src/structs.h @ 2171:e12b9d992389 v7.2.436

updated for version 7.2.436 Problem: Reproducible crash in syntax HL. (George Reilly, Dominique Pelle) Solution: Make sst_stacksize an int instead of short. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Sun, 16 May 2010 13:56:06 +0200
parents 4269a0673478
children c6f1aa1e9f32
comparison
equal deleted inserted replaced
2169:cf8f86128f4c 2171:e12b9d992389
325 #define ALIGN_MASK (ALIGN_SIZE - 1) 325 #define ALIGN_MASK (ALIGN_SIZE - 1)
326 326
327 typedef struct m_info minfo_T; 327 typedef struct m_info minfo_T;
328 328
329 /* 329 /*
330 * stucture used to link chunks in one of the free chunk lists. 330 * structure used to link chunks in one of the free chunk lists.
331 */ 331 */
332 struct m_info 332 struct m_info
333 { 333 {
334 #ifdef ALIGN_LONG 334 #ifdef ALIGN_LONG
335 long_u m_size; /* size of the chunk (including m_info) */ 335 long_u m_size; /* size of the chunk (including m_info) */
793 { 793 {
794 bufstate_T sst_stack[SST_FIX_STATES]; /* short state stack */ 794 bufstate_T sst_stack[SST_FIX_STATES]; /* short state stack */
795 garray_T sst_ga; /* growarray for long state stack */ 795 garray_T sst_ga; /* growarray for long state stack */
796 } sst_union; 796 } sst_union;
797 int sst_next_flags; /* flags for sst_next_list */ 797 int sst_next_flags; /* flags for sst_next_list */
798 int sst_stacksize; /* number of states on the stack */
798 short *sst_next_list; /* "nextgroup" list in this state 799 short *sst_next_list; /* "nextgroup" list in this state
799 * (this is a copy, don't free it! */ 800 * (this is a copy, don't free it! */
800 short sst_stacksize; /* number of states on the stack */
801 disptick_T sst_tick; /* tick when last displayed */ 801 disptick_T sst_tick; /* tick when last displayed */
802 linenr_T sst_change_lnum;/* when non-zero, change in this line 802 linenr_T sst_change_lnum;/* when non-zero, change in this line
803 * may have made the state invalid */ 803 * may have made the state invalid */
804 }; 804 };
805 #endif /* FEAT_SYN_HL */ 805 #endif /* FEAT_SYN_HL */
2136 #define SHAPE_IDX_R 3 /* Replace mode */ 2136 #define SHAPE_IDX_R 3 /* Replace mode */
2137 #define SHAPE_IDX_C 4 /* Command line Normal mode */ 2137 #define SHAPE_IDX_C 4 /* Command line Normal mode */
2138 #define SHAPE_IDX_CI 5 /* Command line Insert mode */ 2138 #define SHAPE_IDX_CI 5 /* Command line Insert mode */
2139 #define SHAPE_IDX_CR 6 /* Command line Replace mode */ 2139 #define SHAPE_IDX_CR 6 /* Command line Replace mode */
2140 #define SHAPE_IDX_O 7 /* Operator-pending mode */ 2140 #define SHAPE_IDX_O 7 /* Operator-pending mode */
2141 #define SHAPE_IDX_VE 8 /* Visual mode with 'seleciton' exclusive */ 2141 #define SHAPE_IDX_VE 8 /* Visual mode with 'selection' exclusive */
2142 #define SHAPE_IDX_CLINE 9 /* On command line */ 2142 #define SHAPE_IDX_CLINE 9 /* On command line */
2143 #define SHAPE_IDX_STATUS 10 /* A status line */ 2143 #define SHAPE_IDX_STATUS 10 /* A status line */
2144 #define SHAPE_IDX_SDRAG 11 /* dragging a status line */ 2144 #define SHAPE_IDX_SDRAG 11 /* dragging a status line */
2145 #define SHAPE_IDX_VSEP 12 /* A vertical separator line */ 2145 #define SHAPE_IDX_VSEP 12 /* A vertical separator line */
2146 #define SHAPE_IDX_VDRAG 13 /* dragging a vertical separator line */ 2146 #define SHAPE_IDX_VDRAG 13 /* dragging a vertical separator line */
2265 #ifdef FEAT_GUI_MAC 2265 #ifdef FEAT_GUI_MAC
2266 /* MenuHandle id; */ 2266 /* MenuHandle id; */
2267 /* short index; */ /* the item index within the father menu */ 2267 /* short index; */ /* the item index within the father menu */
2268 short menu_id; /* the menu id to which this item belong */ 2268 short menu_id; /* the menu id to which this item belong */
2269 short submenu_id; /* the menu id of the children (could be 2269 short submenu_id; /* the menu id of the children (could be
2270 get throught some tricks) */ 2270 get through some tricks) */
2271 MenuHandle menu_handle; 2271 MenuHandle menu_handle;
2272 MenuHandle submenu_handle; 2272 MenuHandle submenu_handle;
2273 #endif 2273 #endif
2274 #ifdef RISCOS 2274 #ifdef RISCOS
2275 int *id; /* Not used, but gui.c needs it */ 2275 int *id; /* Not used, but gui.c needs it */