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:
Tom Tromey
2022-04-27 14:32:49 -06:00
parent c42dd30d73
commit 0d1703b8fb
14 changed files with 35 additions and 38 deletions

View File

@@ -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.