comparison src/regexp.h @ 4837:05b8436873d4 v7.3.1165

updated for version 7.3.1165 Problem: HP-UX compiler can't handle zero size array. (Charles Cooper) Solution: Make the array one item big.
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Jun 2013 18:42:36 +0200
parents 66803af09906
children 0ea551fa607d
comparison
equal deleted inserted replaced
4836:042bad129c6b 4837:05b8436873d4
99 #ifdef DEBUG 99 #ifdef DEBUG
100 char_u *pattern; 100 char_u *pattern;
101 #endif 101 #endif
102 int nsubexp; /* number of () */ 102 int nsubexp; /* number of () */
103 int nstate; 103 int nstate;
104 nfa_state_T state[0]; /* actually longer.. */ 104 nfa_state_T state[1]; /* actually longer.. */
105 } nfa_regprog_T; 105 } nfa_regprog_T;
106 106
107 /* 107 /*
108 * Structure to be used for single-line matching. 108 * Structure to be used for single-line matching.
109 * Sub-match "no" starts at "startp[no]" and ends just before "endp[no]". 109 * Sub-match "no" starts at "startp[no]" and ends just before "endp[no]".