/* Vector of types defined so far, indexed by their coff symnum. */
-static struct typevector *type_vector;
+static struct type **type_vector;
/* Number of elements allocated for type_vector currently. */
if (type_vector_length < index) {
type_vector_length = index * 2;
}
- type_vector = (struct typevector *)
- xrealloc (type_vector, sizeof (struct typevector)
- + type_vector_length * sizeof (struct type *));
- bzero (&type_vector->type[ old_vector_length ],
+ type_vector = (struct type **)
+ xrealloc (type_vector, type_vector_length * sizeof (struct type *));
+ bzero (&type_vector[old_vector_length],
(type_vector_length - old_vector_length) * sizeof(struct type *));
}
- return &type_vector->type[index];
+ return &type_vector[index];
}
/* Make sure there is a type allocated for type number index
type = (struct type *) obstack_alloc (symbol_obstack,
sizeof (struct type));
bzero (type, sizeof (struct type));
+ TYPE_VPTR_FIELDNO (type) = -1;
*type_addr = type;
}
return type;
if (type_vector) /* Get rid of previous one */
free (type_vector);
type_vector_length = 160;
- type_vector = (struct typevector *)
- xmalloc (sizeof (struct typevector)
- + type_vector_length * sizeof (struct type *));
- bzero (type_vector->type, type_vector_length * sizeof (struct type *));
+ type_vector = (struct type **)
+ xmalloc (type_vector_length * sizeof (struct type *));
+ bzero (type_vector, type_vector_length * sizeof (struct type *));
start_symtab ();
#if defined (TDESC)
"m88kbcs", 8,
#else /* not TDESC */
+# ifdef i386
+ "i386coff", 8,
+# else
"coff", 4,
+# endif /* not i386 */
#endif /* not TDESC */
coff_new_init, coff_symfile_init, coff_symfile_read,
};
}
+#if 0
+/* mauro@olympus 1991.10.20 -- compiling the following code causes
+ undefined symbols at link time, specifically: corechan, have_inferior_p */
struct env387
{
unsigned short control;
fpstatep = (struct fpstate *)(buf + skip);
print_387_status (fpstatep->status, (struct env387 *)fpstatep->state);
}
+#endif /* mauro@olympus 1991.10.20 */