+2003-01-07 Tom Tromey <tromey@redhat.com>
+
+ * class.c (add_assume_compiled): Don't adjust parent if we're
+ already at the root of tree.
+
2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lang.c (dump_compound_expr): Prototype.
const char *ident;
int excludep;
{
+ int len;
assume_compiled_node *parent;
assume_compiled_node *node =
xmalloc (sizeof (assume_compiled_node));
class or a package name. Adjust PARENT accordingly. */
parent = find_assume_compiled_node (assume_compiled_tree, ident);
- if (ident[strlen (parent->ident)] != '.')
+ len = strlen (parent->ident);
+ if (parent->ident[len] && parent->ident[len] != '.')
parent = parent->parent;
/* Insert NODE into the tree. */
}
/* Returns nonzero if IDENT is the name of a class that the compiler
- should assume has been compiled to FIXME */
+ should assume has been compiled to object code. */
static int
assume_compiled (ident)