From 0d1703b8fb611f978577a70ad6aa308a12a53980 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 27 Apr 2022 14:32:49 -0600 Subject: 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. --- gdb/linespec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/linespec.c') diff --git a/gdb/linespec.c b/gdb/linespec.c index 3cbb8f8..c9558c8 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -228,7 +228,7 @@ struct symbol_searcher_collect_info /* Token types */ -enum ls_token_type +enum linespec_token_type { /* A keyword */ LSTOKEN_KEYWORD = 0, @@ -251,7 +251,6 @@ enum ls_token_type /* Consumed token */ LSTOKEN_CONSUMED }; -typedef enum ls_token_type linespec_token_type; /* List of keywords. This is NULL-terminated so that it can be used as enum completer. */ -- cgit v1.1