Mail Archives: djgpp-workers/2004/04/16/02:55:48
> From: Andris Pavenis <pavenis AT latnet DOT lv>
> Date: Thu, 15 Apr 2004 18:22:35 +0300
>
> --- bfdsymify.c~1 2002-08-15 11:21:00.000000000 +0000
> +++ bfdsymify.c 2004-04-11 09:17:08.000000000 +0000
> @@ -4,10 +4,12 @@
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> +#include <stdbool.h>
> #include <unistd.h>
> #include <pc.h>
>
> #include "bfd.h"
> +#include "bfdver.h"
> #include "getopt.h"
> #include "libiberty.h"
> #include "demangle.h"
> @@ -111,7 +113,7 @@
> const asymbol *b =3D *(const asymbol **)bp;
> const char *an, *bn;
> size_t anl, bnl;
> - boolean af, bf;
> + bool af, bf;
What was wrong with the original code that used `boolean'? Is that a
reserved identifier in newer GCC's? If so, I'd prefer a solution that
doesn't require stdbool.h, since we don't have it in djdev203.
Something like BOOLEAN or BOOL or some such, defined in bfdsymify.c.
If all else fails, even using `int' would be better, I think.
- Raw text -