2003-01-17 Andrew Cagney <ac131313@redhat.com>
* main.c (captured_main): Don't use PTR. * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp. * gdbtypes.c (lookup_primitive_typename): Ditto. (lookup_struct_elt_type): Ditto. * f-valprint.c (info_common_command): Ditto. (list_all_visible_commons): Ditto. * jv-typeprint.c (java_type_print_base): Ditto.
This commit is contained in:
parent
a84d24ee80
commit
762f08a397
6 changed files with 16 additions and 7 deletions
|
@ -1021,7 +1021,7 @@ lookup_primitive_typename (char *name)
|
|||
|
||||
for (p = current_language->la_builtin_type_vector; *p != NULL; p++)
|
||||
{
|
||||
if (STREQ (TYPE_NAME (**p), name))
|
||||
if (strcmp (TYPE_NAME (**p), name) == 0)
|
||||
{
|
||||
return (**p);
|
||||
}
|
||||
|
@ -1228,7 +1228,7 @@ lookup_struct_elt_type (struct type *type, char *name, int noerr)
|
|||
char *typename;
|
||||
|
||||
typename = type_name_no_tag (type);
|
||||
if (typename != NULL && STREQ (typename, name))
|
||||
if (typename != NULL && strcmp (typename, name) == 0)
|
||||
return type;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue