This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Correct fix for stdbool?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 07 Feb 2002 20:42:25 -0500
- Subject: Correct fix for stdbool?
Hello,
So what is the correct fix for the <stdbool.h> true/false problem?
Off the top of my head, I can think of:
- delete boolean / true / false replacing them with int.
The ``come'on, admit it, this is C'', line of reasoning.
- change verything to
typedef enum bfd_boolean {bfd_fffalse, bfd_tttrue} boolean;
The ``well it can't be worse than it is now'', line of reasoning.
- add a "bfd_stdbool.h"
Which is included explicitly and defines "true" and "false". "bfd.h"
doesn't depend on it.
The ``lets pretend'', line of reasoning.
enjoy,
Andrew