* language.h (enum exp_opcode): Add forward declaration.

(language_string_char_type, language_lookup_primitive_type_by_name):
        Move declaration past declaration of language_defn.
This commit is contained in:
Joel Brobecker 2007-12-17 07:00:49 +00:00
parent f164edfa5d
commit b62f344344
2 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2007-12-17 Joel Brobecker <brobecker@adacore.com>
* language.h (enum exp_opcode): Add forward declaration.
(language_string_char_type, language_lookup_primitive_type_by_name):
Move declaration past declaration of language_defn.
2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com> Joseph Myers <joseph@codesourcery.com>

View File

@ -30,8 +30,7 @@ struct objfile;
struct frame_info; struct frame_info;
struct expression; struct expression;
struct ui_file; struct ui_file;
enum exp_opcode;
/* enum exp_opcode; ANSI's `wisdom' didn't include forward enum decls. */
/* This used to be included to configure GDB for one or more specific /* This used to be included to configure GDB for one or more specific
languages. Now it is left out to configure for all of them. FIXME. */ languages. Now it is left out to configure for all of them. FIXME. */
@ -129,13 +128,6 @@ struct language_arch_info
struct type *string_char_type; struct type *string_char_type;
}; };
struct type *language_string_char_type (const struct language_defn *l,
struct gdbarch *gdbarch);
struct type *language_lookup_primitive_type_by_name (const struct language_defn *l,
struct gdbarch *gdbarch,
const char *name);
/* Structure tying together assorted information about a language. */ /* Structure tying together assorted information about a language. */
struct language_defn struct language_defn
@ -314,6 +306,14 @@ extern enum language_mode
language_mode_auto, language_mode_manual language_mode_auto, language_mode_manual
} }
language_mode; language_mode;
struct type *language_string_char_type (const struct language_defn *l,
struct gdbarch *gdbarch);
struct type *language_lookup_primitive_type_by_name (const struct language_defn *l,
struct gdbarch *gdbarch,
const char *name);
/* These macros define the behaviour of the expression /* These macros define the behaviour of the expression
evaluator. */ evaluator. */