/* sym_ids.c
- Copyright 1999, 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1999-2016 Free Software Foundation, Inc.
This file is part of GNU Binutils.
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
\f
+#include "gprof.h"
#include "libiberty.h"
#include "safe-ctype.h"
-#include "gprof.h"
#include "search_list.h"
#include "source.h"
#include "symtab.h"
#include "sym_ids.h"
#include "corefile.h"
-static struct sym_id
+struct match
+ {
+ int prev_index; /* Index of prev match. */
+ Sym *prev_match; /* Previous match. */
+ Sym *first_match; /* Chain of all matches. */
+ Sym sym;
+ };
+
+struct sym_id
{
struct sym_id *next;
char *spec; /* Parsing modifies this. */
Table_Id which_table;
bfd_boolean has_right;
- struct match
- {
- int prev_index; /* Index of prev match. */
- Sym *prev_match; /* Previous match. */
- Sym *first_match; /* Chain of all matches. */
- Sym sym;
- }
- left, right;
- }
- *id_list;
+ struct match left, right;
+ };
+
+static struct sym_id *id_list;
static void parse_spec
(char *, Sym *);