Saberlint.

* symmisc.c, xcoffread.c:  Move debug functions to symmisc.c.
This commit is contained in:
John Gilmore
1992-02-22 09:16:11 +00:00
parent 30875e1c4b
commit 93fe4e330e
8 changed files with 148 additions and 267 deletions

View File

@@ -20,6 +20,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include "defs.h"
#include <string.h>
#include "bfd.h"
#include "symtab.h"
#include "symfile.h"
@@ -50,7 +51,7 @@ alloc_type (objfile)
type = (struct type *) obstack_alloc (&objfile -> type_obstack,
sizeof (struct type));
}
(void) memset (type, 0, sizeof (struct type));
(void) memset ((char *)type, 0, sizeof (struct type));
/* Initialize the fields that might not be zero. */
@@ -249,7 +250,7 @@ smash_to_member_type (type, domain, to_type)
objfile = TYPE_OBJFILE (type);
(void) memset (type, 0, sizeof (struct type));
(void) memset ((char *)type, 0, sizeof (struct type));
TYPE_OBJFILE (type) = objfile;
TYPE_TARGET_TYPE (type) = to_type;
TYPE_DOMAIN_TYPE (type) = domain;
@@ -276,7 +277,7 @@ smash_to_method_type (type, domain, to_type, args)
objfile = TYPE_OBJFILE (type);
(void) memset (type, 0, sizeof (struct type));
(void) memset ((char *)type, 0, sizeof (struct type));
TYPE_OBJFILE (type) = objfile;
TYPE_TARGET_TYPE (type) = to_type;
TYPE_DOMAIN_TYPE (type) = domain;
@@ -603,7 +604,7 @@ check_stub_type (type)
(struct symtab **) NULL);
if (sym)
{
memcpy (type, SYMBOL_TYPE(sym), sizeof (struct type));
memcpy ((char *)type, (char *)SYMBOL_TYPE(sym), sizeof (struct type));
}
}
}
@@ -789,7 +790,7 @@ lookup_fundamental_type (objfile, typeid)
nbytes = FT_NUM_MEMBERS * sizeof (struct type *);
objfile -> fundamental_types = (struct type **)
obstack_alloc (&objfile -> type_obstack, nbytes);
(void) memset (objfile -> fundamental_types, 0, nbytes);
(void) memset ((char *)objfile -> fundamental_types, 0, nbytes);
}
typep = objfile -> fundamental_types + typeid;
if ((type = *typep) == NULL)