diff options
author | Tom Tromey <tromey@adacore.com> | 2022-04-27 14:32:49 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-28 09:31:15 -0600 |
commit | 0d1703b8fb611f978577a70ad6aa308a12a53980 (patch) | |
tree | 1575fb753e121f86566507be66b72cd85efc013e /gdb/command.h | |
parent | c42dd30d73ec441ed9cab207597c7f5ce88ee231 (diff) | |
download | fsf-binutils-gdb-0d1703b8fb611f978577a70ad6aa308a12a53980.zip fsf-binutils-gdb-0d1703b8fb611f978577a70ad6aa308a12a53980.tar.gz fsf-binutils-gdb-0d1703b8fb611f978577a70ad6aa308a12a53980.tar.bz2 |
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.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/command.h b/gdb/command.h index cd79814..d901da3 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -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. |