Mercurial > vim
changeset 4456:015a8fabf900 v7.3.976
updated for version 7.3.976
Problem: Can't build on HP-UX.
Solution: Remove modern initialization. (John Marriott)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 20 May 2013 13:55:21 +0200 |
parents | 7a8ab72ac35e |
children | f91821dec803 |
files | src/regexp_nfa.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -1961,14 +1961,17 @@ static void st_push __ARGS((Frag_T s, Fr static Frag_T st_pop __ARGS((Frag_T **p, Frag_T *stack)); /* - * Initialize Frag_T struct. + * Initialize a Frag_T struct and return it. */ static Frag_T frag(start, out) nfa_state_T *start; Ptrlist *out; { - Frag_T n = { start, out }; + Frag_T n; + + n.start = start; + n.out = out; return n; } @@ -2144,7 +2147,7 @@ post2nfa(postfix, end, nfa_calc_size) if (postfix == NULL) return NULL; -#define PUSH(s) st_push ((s), &stackp, stack_end) +#define PUSH(s) st_push((s), &stackp, stack_end) #define POP() st_pop(&stackp, stack); \ if (stackp < stack) \ { \