aboutsummaryrefslogtreecommitdiff
path: root/gdb/typeprint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-07 00:27:31 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-07 00:27:31 +0000
commit5cb316ef79dafb9f22426015584817e5e2756507 (patch)
treeb0113d47cc5db9e154dc221ff0e2ad9b1a315bea /gdb/typeprint.c
parente77e4e3ff8cfb6ed2702578da42d2bff8ec257ae (diff)
downloadfsf-binutils-gdb-5cb316ef79dafb9f22426015584817e5e2756507.zip
fsf-binutils-gdb-5cb316ef79dafb9f22426015584817e5e2756507.tar.gz
fsf-binutils-gdb-5cb316ef79dafb9f22426015584817e5e2756507.tar.bz2
2003-02-06 Andrew Cagney <ac131313@redhat.com>
* linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>. * cp-valprint.c (cp_print_value_fields): Eliminate STREQN. * jv-typeprint.c (java_type_print_base): Ditto. * typeprint.c (typedef_print): Eliminate STREQ. * cli/cli-script.c (define_command, define_command): Ditto. * main.c (captured_main): Ditto. * values.c (lookup_internalvar): Ditto. * utils.c (safe_strerror, parse_escape): Eliminate assignment within `if' conditional. * linespec.c (decode_line_2): Ditto. * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto. (bfd_openw_with_cleanup): Ditto. Index: mi/ChangeLog 2003-02-06 Andrew Cagney <ac131313@redhat.com> * mi-cmd-env.c: Include "gdb_stat.h" instead of <sys/stat.h>.
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r--gdb/typeprint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 8e517a0..b184103 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -67,15 +67,15 @@ typedef_print (struct type *type, struct symbol *new, struct ui_file *stream)
fprintf_filtered (stream, "typedef ");
type_print (type, "", stream, 0);
if (TYPE_NAME ((SYMBOL_TYPE (new))) == 0
- || !STREQ (TYPE_NAME ((SYMBOL_TYPE (new))), SYMBOL_NAME (new)))
+ || strcmp (TYPE_NAME ((SYMBOL_TYPE (new))), SYMBOL_NAME (new)) != 0)
fprintf_filtered (stream, " %s", SYMBOL_SOURCE_NAME (new));
break;
#endif
#ifdef _LANG_m2
case language_m2:
fprintf_filtered (stream, "TYPE ");
- if (!TYPE_NAME (SYMBOL_TYPE (new)) ||
- !STREQ (TYPE_NAME (SYMBOL_TYPE (new)), SYMBOL_NAME (new)))
+ if (!TYPE_NAME (SYMBOL_TYPE (new))
+ || strcmp (TYPE_NAME ((SYMBOL_TYPE (new))), SYMBOL_NAME (new)) != 0)
fprintf_filtered (stream, "%s = ", SYMBOL_SOURCE_NAME (new));
else
fprintf_filtered (stream, "<builtin> = ");