Saturday, February 27, 2021

Re: FIX games/corewars -fno-common build error

Bjorn Ketelaars:

> +--- src/parser-cw.c.orig
> ++++ src/parser-cw.c
> +@@ -32,8 +32,8 @@
> + #include "program-cw.h"
> + #include "options.h"
> +
> +- int current_line;
> +- struct cw_line *root_line;
> ++ extern int current_line;
> ++ extern struct cw_line *root_line;

Hmm. There are two parsers, parser-cw.y and parser-rc.y, and each
has variables current_line and root_line. Should those be static
instead?

--
Christian "naddy" Weisgerber naddy@mips.inka.de

No comments:

Post a Comment