mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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.
This commit is contained in:
parent
9a773488a7
commit
16619a235b
@ -101,7 +101,7 @@ typedef struct
|
|||||||
#endif
|
#endif
|
||||||
int nsubexp; /* number of () */
|
int nsubexp; /* number of () */
|
||||||
int nstate;
|
int nstate;
|
||||||
nfa_state_T state[0]; /* actually longer.. */
|
nfa_state_T state[1]; /* actually longer.. */
|
||||||
} nfa_regprog_T;
|
} nfa_regprog_T;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -6391,8 +6391,8 @@ nfa_regcomp(expr, re_flags)
|
|||||||
*/
|
*/
|
||||||
post2nfa(postfix, post_ptr, TRUE);
|
post2nfa(postfix, post_ptr, TRUE);
|
||||||
|
|
||||||
/* Space for compiled regexp */
|
/* allocate the regprog with space for the compiled regexp */
|
||||||
prog_size = sizeof(nfa_regprog_T) + sizeof(nfa_state_T) * nstate;
|
prog_size = sizeof(nfa_regprog_T) + sizeof(nfa_state_T) * (nstate - 1);
|
||||||
prog = (nfa_regprog_T *)lalloc(prog_size, TRUE);
|
prog = (nfa_regprog_T *)lalloc(prog_size, TRUE);
|
||||||
if (prog == NULL)
|
if (prog == NULL)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1165,
|
||||||
/**/
|
/**/
|
||||||
1164,
|
1164,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user