This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]