+2014-12-12 Doug Evans <xdje42@gmail.com>
+
+ * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
+ All callers updated. Rename arg "namespace" to "symbol_name".
+
2014-12-12 Doug Evans <xdje42@gmail.com>
* psymtab.c (psym_map_symtabs_matching_filename): Renamed from
/* Start with a quick-and-dirty check for mention of "(anonymous
namespace)". */
- if (!cp_is_anonymous (name))
+ if (!cp_is_in_anonymous (name))
return;
previous_component = 0;
namespace; return nonzero if so. */
int
-cp_is_anonymous (const char *namespace)
+cp_is_in_anonymous (const char *symbol_name)
{
- return (strstr (namespace, CP_ANONYMOUS_NAMESPACE_STR)
+ return (strstr (symbol_name, CP_ANONYMOUS_NAMESPACE_STR)
!= NULL);
}
strcat (concatenated_name, "::");
strcat (concatenated_name, name);
return lookup_symbol_file (concatenated_name, block, domain,
- cp_is_anonymous (namespace), search);
+ cp_is_in_anonymous (namespace), search);
}
}
/* Functions/variables from cp-namespace.c. */
-extern int cp_is_anonymous (const char *namespace);
+extern int cp_is_in_anonymous (const char *symbol_name);
extern void cp_add_using_directive (const char *dest,
const char *src,