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:
Andrew Cagney
2003-01-17 19:12:19 +00:00
parent a84d24ee80
commit 762f08a397
6 changed files with 16 additions and 7 deletions

View File

@@ -216,7 +216,7 @@ java_type_print_base (struct type *type, struct ui_file *stream, int show,
n_overloads = TYPE_FN_FIELDLIST_LENGTH (type, i);
method_name = TYPE_FN_FIELDLIST_NAME (type, i);
name = type_name_no_tag (type);
is_constructor = name && STREQ (method_name, name);
is_constructor = name && strcmp (method_name, name) == 0;
for (j = 0; j < n_overloads; j++)
{