> Hello.
>
> MSVC stumble over
>
> static struct longopt_opt_decl options[] = {
> .....
> {'\0', 128, 0, { "--gc-debug" } },
> {'\0', 0, 0, { } }
> }
>
> Рlease, replace it by
>
> RCS file: /cvs/public/parrot/test_main.c,v
> retrieving revision 1.66
> diff -r1.66 test_main.c
> 36c36
> < {'\0', 0, 0, { } }
> ---
> > {'\0', 0, 0, { "" } }
>
> or as you find convenient.
It doesn't really matter for this last entry, but make it NULL
instead. In imcc's main.c, there's two entries with a { } that should
be replaced with { NULL }, too.
So now we have:
Index: test_main.c
===================================================================
RCS file: /cvs/public/parrot/test_main.c,v
retrieving revision 1.66
diff -u -r1.66 test_main.c
--- test_main.c 2 Jun 2003 08:52:41 -0000 1.66
+++ test_main.c 3 Jun 2003 12:23:07 -0000
@@ -33,7 +33,7 @@
{ 'v', 'v', 0, { "--version" } },
{ '.', '.', 0, { "--wait" } },
{'\0', 128, 0, { "--gc-debug" } },
- {'\0', 0, 0, { } }
+ {'\0', 0, 0, { NULL } }
};
static void usage(void);
Index: languages/imcc/main.c
===================================================================
RCS file: /cvs/public/parrot/languages/imcc/main.c,v
retrieving revision 1.25
diff -u -r1.25 main.c
--- languages/imcc/main.c 2 Jun 2003 08:52:27 -0000 1.25
+++ languages/imcc/main.c 3 Jun 2003 12:23:07 -0000
@@ -85,7 +85,7 @@
{ 'd', 'd', OPTION_required_FLAG, { "--debug" } },
{ 'w', 'w', 0, { "--warnings" } },
{ 'G', 'G', 0, { "--no-gc" } },
- { '.', '.', 0, { } },
+ { '.', '.', 0, { NULL } },
{ 'a', 'a', 0, { "--pasm" } },
{ 'h', 'h', 0, { "--help" } },
{ 'V', 'V', 0, { "--version" } },
@@ -96,7 +96,7 @@
{ 'o', 'o', OPTION_required_FLAG, { "--output" } },
{ 'O', 'O', OPTION_required_FLAG, { "--optimize" } },
{ OPT_GC_DEBUG, '\0', 0, { "--gc-debug" } },
- { 0, 0, 0, { } }
+ { 0, 0, 0, { NULL } }
};
/* most stolen from test_main.c */