X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Flanguage.c;h=2a4a1b3ee9785ed34b3bf58c39ff51fcfc186cb3;hb=74d6ac44dec6ac521772bc13c5c789c3d97ec19f;hp=9f56066cbc2548a95e2dc9fbc03e44f14d2734b3;hpb=fc71ad23ddd09cfc590e487eb3be266a11837465;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/language.c b/gdb/language.c index 9f56066cbc..2a4a1b3ee9 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -30,11 +30,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "defs.h" #include #include "gdb_string.h" -#ifdef ANSI_PROTOTYPES -#include -#else -#include -#endif #include "symtab.h" #include "gdbtypes.h" @@ -88,6 +83,25 @@ set_check PARAMS ((char *, int)); static void set_type_range PARAMS ((void)); +static void +unk_lang_printchar PARAMS ((int, GDB_FILE *)); + +static void +unk_lang_printstr PARAMS ((GDB_FILE *, char *, unsigned int, int)); + +static struct type * +unk_lang_create_fundamental_type PARAMS ((struct objfile *, int)); + +static void +unk_lang_print_type PARAMS ((struct type *, char *, GDB_FILE *, int, int)); + +static int +unk_lang_val_print PARAMS ((struct type *, char *, CORE_ADDR, GDB_FILE *, + int, int, int, enum val_prettyprint)); + +static int +unk_lang_value_print PARAMS ((value_ptr, GDB_FILE *, int, enum val_prettyprint)); + /* Forward declaration */ extern const struct language_defn unknown_language_defn; extern char *warning_pre_print; @@ -799,7 +813,7 @@ lang_bool_type () sym = lookup_symbol ("logical", NULL, VAR_NAMESPACE, NULL, NULL); if (sym) { - struct type *type = SYMBOL_TYPE (sym); + type = SYMBOL_TYPE (sym); if (type && TYPE_CODE (type) == TYPE_CODE_BOOL) return type; } @@ -808,7 +822,7 @@ lang_bool_type () sym = lookup_symbol ("bool", NULL, VAR_NAMESPACE, NULL, NULL); if (sym) { - struct type *type = SYMBOL_TYPE (sym); + type = SYMBOL_TYPE (sym); if (type && TYPE_CODE (type) == TYPE_CODE_BOOL) return type; } @@ -1219,7 +1233,7 @@ unk_lang_create_fundamental_type (objfile, typeid) error ("internal error - unimplemented function unk_lang_create_fundamental_type called."); } -void +static void unk_lang_print_type (type, varstring, stream, show, level) struct type *type; char *varstring; @@ -1230,7 +1244,7 @@ unk_lang_print_type (type, varstring, stream, show, level) error ("internal error - unimplemented function unk_lang_print_type called."); } -int +static int unk_lang_val_print (type, valaddr, address, stream, format, deref_ref, recurse, pretty) struct type *type; @@ -1245,7 +1259,7 @@ unk_lang_val_print (type, valaddr, address, stream, format, deref_ref, error ("internal error - unimplemented function unk_lang_val_print called."); } -int +static int unk_lang_value_print (val, stream, format, pretty) value_ptr val; GDB_FILE *stream; @@ -1255,7 +1269,7 @@ unk_lang_value_print (val, stream, format, pretty) error ("internal error - unimplemented function unk_lang_value_print called."); } -static struct type ** const (unknown_builtin_types[]) = { 0 }; +static struct type ** CONST_PTR (unknown_builtin_types[]) = { 0 }; static const struct op_print unk_op_print_tab[] = { {NULL, OP_NULL, PREC_NULL, 0} };