1 /* Language independent support for printing types for GDB, the GNU debugger.
2 Copyright (C) 1986, 1988-1989, 1991-1993, 1999-2000, 2007-2012 Free
3 Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 struct typedef_hash_table;
27 struct type_print_options
29 /* True means that no special printing flags should apply. */
32 /* True means print methods in a class. */
33 unsigned int print_methods : 1;
35 /* True means print typedefs in a class. */
36 unsigned int print_typedefs : 1;
38 /* If not NULL, a local typedef hash table used when printing a
40 struct typedef_hash_table *local_typedefs;
43 extern const struct type_print_options type_print_raw_options;
45 void recursively_update_typedef_hash (struct typedef_hash_table *,
48 void add_template_parameters (struct typedef_hash_table *, struct type *);
50 struct typedef_hash_table *create_typedef_hash (void);
52 void free_typedef_hash (struct typedef_hash_table *);
54 struct cleanup *make_cleanup_free_typedef_hash (struct typedef_hash_table *);
56 struct typedef_hash_table *copy_typedef_hash (struct typedef_hash_table *);
58 const char *find_typedef_in_hash (const struct type_print_options *,
61 void print_type_scalar (struct type * type, LONGEST, struct ui_file *);
63 void c_type_print_varspec_suffix (struct type *, struct ui_file *, int,
64 int, int, const struct type_print_options *);
66 void c_type_print_args (struct type *, struct ui_file *, int, enum language,
67 const struct type_print_options *);