John Marriott wrote:
[html removed]
> 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.
Thanks. That is a modern initialization construct, not supported
by older compilers.
--
Violators can be fined, arrested or jailed for making ugly faces at a dog.
[real standing law in Oklahoma, United States of America]
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.