mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Remove "typedef enum ..."
I noticed a few spots in GDB that use "typedef enum". However, in C++ this isn't as useful, as the tag is automatically entered as a typedef. This patch removes most uses of "typedef enum" -- the exceptions being in some nat-* code I can't compile, and glibc_thread_db.h, which I think is more or less a copy of some C code from elsewhere. Tested by rebuilding.
This commit is contained in:
@@ -71,7 +71,7 @@ enum command_class
|
||||
};
|
||||
|
||||
/* Types of "set" or "show" command. */
|
||||
typedef enum var_types
|
||||
enum var_types
|
||||
{
|
||||
/* "on" or "off". *VAR is a bool which is true for on,
|
||||
false for off. */
|
||||
@@ -120,8 +120,7 @@ typedef enum var_types
|
||||
*VAR is a char pointer to the name of the element that we
|
||||
find. */
|
||||
var_enum
|
||||
}
|
||||
var_types;
|
||||
};
|
||||
|
||||
/* Return true if a setting of type VAR_TYPE is backed with type T.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user