const cpp_comment *rhs = (const cpp_comment *) rp;
if (LOCATION_FILE (lhs->sloc) != LOCATION_FILE (rhs->sloc))
- return strcmp (LOCATION_FILE (lhs->sloc), LOCATION_FILE (rhs->sloc));
+ return filename_cmp (LOCATION_FILE (lhs->sloc),
+ LOCATION_FILE (rhs->sloc));
if (LOCATION_LINE (lhs->sloc) != LOCATION_LINE (rhs->sloc))
return LOCATION_LINE (lhs->sloc) - LOCATION_LINE (rhs->sloc);
}
}
-/* Dump in BUFFER the contents of all instantiations associated with a given
- template T. CPP_CHECK is used to perform C++ queries on nodes.
+/* Dump in BUFFER the contents of all class instantiations associated with
+ a given template T. CPP_CHECK is used to perform C++ queries on nodes.
SPC is the indentation level. */
static int
if (TREE_VEC_LENGTH (types) == 0)
break;
- if (!TYPE_METHODS (instance))
+ if (!TYPE_P (instance) || !TYPE_METHODS (instance))
break;
num_inst++;
|| !TYPE_FIELDS (TREE_TYPE (underlying_type))))
/* Pointer to opaque structure. */
+ || underlying_type == NULL_TREE
|| (!typ2
&& !TREE_VISITED (underlying_type)
&& !TREE_VISITED (type_name)
if (TREE_CODE (decl) == FUNCTION_TYPE)
for (decl = TREE_TYPE (decl);
decl && TREE_CODE (decl) == POINTER_TYPE;
- decl = TREE_TYPE (decl));
+ decl = TREE_TYPE (decl))
+ ;
decl = get_underlying_decl (decl);
pkg_name = get_ada_package (source_file);
- /* Construct the the .ads filename and package name. */
+ /* Construct the .ads filename and package name. */
ads_name = xstrdup (pkg_name);
for (s = ads_name; *s; s++)