diff options
author | John Gilmore <gnu@cygnus> | 1991-07-21 06:40:42 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-07-21 06:40:42 +0000 |
commit | fb3ee1c0d547326cd22e69b9fd3cf61acce4a4e3 (patch) | |
tree | 903804e7cedeedd6741eb4372aaf00d1eff39621 /include | |
parent | d6c01d81dbc3f83f9fd941c75380149a66e961ba (diff) | |
download | binutils-gdb-fb3ee1c0d547326cd22e69b9fd3cf61acce4a4e3.tar.gz |
Give all enums names. Helps in debugging.
Diffstat (limited to 'include')
-rw-r--r-- | include/bfd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/bfd.h b/include/bfd.h index 79c23b9d6d0..290a0df3ac1 100644 --- a/include/bfd.h +++ b/include/bfd.h @@ -113,7 +113,8 @@ typedef unsigned long symindex; #define BFD_NO_MORE_SYMBOLS ((symindex) ~0) -typedef enum {bfd_symclass_unknown = 0, +typedef enum bfd_symclass { + bfd_symclass_unknown = 0, bfd_symclass_fcommon, /* fortran common symbols */ bfd_symclass_global, /* global symbol, what a surprise */ bfd_symclass_debugger, /* some debugger symbol */ @@ -183,7 +184,8 @@ typedef struct stat stat_type; /** Error handling */ -typedef enum {no_error = 0, system_call_error, invalid_target, +typedef enum bfd_error { + no_error = 0, system_call_error, invalid_target, wrong_format, invalid_operation, no_memory, no_symbols, no_relocation_info, no_more_archived_files, malformed_archive, |