Hi All,

Attempting to compile on HP-UX fails after this patch with this message:
    cc -c -I. -Iproto -DHAVE_CONFIG_H     -O2       -o objects/regexp.o regexp.c

cc: "regexp_nfa.c", line 1966: error 1521: Incorrect initialization.

It seems that HP's cc doesn't like this initialisation:
/*
 * Initialize Frag_T struct.
 */
    static Frag_T
frag(start, out)
    nfa_state_T    *start;
    Ptrlist    *out;
{
    Frag_T n = { start, out };
    return n;
}

After changing it to:
/*
 * Initialize Frag_T struct.
 */
    static Frag_T
frag(start, out)
    nfa_state_T    *start;
    Ptrlist    *out;
{
    Frag_T n;

    n.start = start;
    n.out = out;

    return n;
}


It's happy again.

Cheers
John

On 20-May-2013 3:44 AM, Bram Moolenaar wrote:
I wrote:

Patch 7.3.970
All the tests I could do with the new engine pass.  However, it is
noticeable slower than the old engine.  If this bothers you, set the
'regexpengine' option to one.

If you spot a mistake in regexp pattern matching, please send a
reproducible example, so that we can add it to the tests.


--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Raspunde prin e-mail lui