aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-04-26 16:32:20 +0000
committerJohn Gilmore <gnu@cygnus>1991-04-26 16:32:20 +0000
commitec08b077309672fec00a0e354a5785d1f0221e2b (patch)
tree7fb899ad48d4be6be8a6f82d54a09c82c6efd5a7 /include
parentd6e467b4c56daab0b72746955c054695ec4207c5 (diff)
downloadgdb-ec08b077309672fec00a0e354a5785d1f0221e2b.zip
gdb-ec08b077309672fec00a0e354a5785d1f0221e2b.tar.gz
gdb-ec08b077309672fec00a0e354a5785d1f0221e2b.tar.bz2
Remove BFD_SUCCESS and BFD_FAILURE, replace with a comment about return
values of functions.
Diffstat (limited to 'include')
-rw-r--r--include/bfd.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/bfd.h b/include/bfd.h
index 5161a54..2a49f71 100644
--- a/include/bfd.h
+++ b/include/bfd.h
@@ -20,8 +20,6 @@ You should have received a copy of the GNU General Public License
along with BFD; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-/* $Id$ */
-
/* executable_object_p is gone -- you can check the bfd flags and call
access() yourself */
@@ -41,20 +39,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif
#define BFD_VERSION "1.9"
+
/* forward declaration */
typedef struct _bfd_struct bfd;
+/* General rules: functions which are boolean return true on success
+ and false on failure (unless they're a predicate). -- bfd.doc */
/* I'm sure this is going to break something and someone is going to
force me to change it. */
typedef enum boolean {false, true} boolean;
-/* FIXME-SOON: I hate it when types are invented for things that
- already have types. In this case, zero and non-zero are so common
- that true vs false makes me stop and read code each time I want to
- know if they mean true there was an error or true the function did
- something. I can't fix this particularly quickly, so I'll just
- skirt the issue for now. This WILL change soon. */
-#define BFD_SUCCESS (true)
-#define BFD_FAILURE (false)
/* Try to avoid breaking stuff */
typedef long int file_ptr;