From 54a5b07d668e9320efb1ada27582f859ccfaaaf3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 28 Jul 2004 15:49:04 +0000 Subject: 2004-07-28 Andrew Cagney * gdbtypes.c (lookup_primitive_typename): Delete function. * gdbtypes.h (lookup_primitive_typename): Delete declaration. * ada-lex.l: Use language_lookup_primitive_type_by_name. * gdbtypes.c (lookup_typename): Ditto. * f-exp.y (yylex): Ditto. * c-exp.y (yylex): Ditto, eliminate assignment in "if". --- gdb/f-exp.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/f-exp.y') diff --git a/gdb/f-exp.y b/gdb/f-exp.y index adff33b4dd3..5ef65d3bee6 100644 --- a/gdb/f-exp.y +++ b/gdb/f-exp.y @@ -1150,7 +1150,10 @@ yylex () yylval.tsym.type = SYMBOL_TYPE (sym); return TYPENAME; } - if ((yylval.tsym.type = lookup_primitive_typename (tmp)) != 0) + yylval.tsym.type + = language_lookup_primitive_type_by_name (current_language, + current_gdbarch, tmp); + if (yylval.tsym.type != NULL) return TYPENAME; /* Input names that aren't symbols but ARE valid hex numbers, -- cgit v1.2.3-65-gdbad