return;
lang_decl_size = sizeof (struct lang_decl);
- x = (struct lang_decl *) ggc_alloc (lang_decl_size);
+ x = ggc_alloc (lang_decl_size);
memcpy (x, DECL_LANG_SPECIFIC (node), lang_decl_size);
DECL_LANG_SPECIFIC (node) = x;
}
};
#define NEW_METHOD_DECLARATOR(D,N,A) \
{ \
- (D) = \
- (struct method_declarator *)xmalloc (sizeof (struct method_declarator)); \
+ (D) = xmalloc (sizeof (struct method_declarator)); \
(D)->method_name = (N); \
(D)->args = (A); \
}
void
java_push_parser_context ()
{
- struct parser_ctxt *new =
- (struct parser_ctxt *) xcalloc (1, sizeof (struct parser_ctxt));
+ struct parser_ctxt *new = xcalloc (1, sizeof (struct parser_ctxt));
new->next = ctxp;
ctxp = new;
{
struct class_context *ctx;
- ctx = (struct class_context *) xmalloc (sizeof (struct class_context));
+ ctx = xmalloc (sizeof (struct class_context));
ctx->name = (char *) name;
ctx->next = current_class_context;
current_class_context = ctx;
{
allocate *= sizeof (int);
if (ctxp->osb_number)
- ctxp->osb_number = (int *)xrealloc (ctxp->osb_number,
- allocate);
+ ctxp->osb_number = xrealloc (ctxp->osb_number,
+ allocate);
else
- ctxp->osb_number = (int *)xmalloc (allocate);
+ ctxp->osb_number = xmalloc (allocate);
}
ctxp->osb_depth++;
CURRENT_OSB (ctxp) = 1;
{
struct parser_ctxt *new;
- new = (struct parser_ctxt *) ggc_alloc (sizeof (struct parser_ctxt));
+ new = ggc_alloc (sizeof (struct parser_ctxt));
if (copy_from_previous)
{
memcpy (new, ctxp, sizeof (struct parser_ctxt));
create_jdep_list (ctxp)
struct parser_ctxt *ctxp;
{
- jdeplist *new = (jdeplist *)xmalloc (sizeof (jdeplist));
+ jdeplist *new = xmalloc (sizeof (jdeplist));
new->first = new->last = NULL;
new->next = ctxp->classd_list;
ctxp->classd_list = new;
int kind;
tree wfl, decl, ptr;
{
- jdep *new = (jdep *)xmalloc (sizeof (jdep));
+ jdep *new = xmalloc (sizeof (jdep));
if (!ptr && kind != JDEP_METHOD_END) /* JDEP_METHOD_END is a mere marker */
ptr = obtain_incomplete_type (wfl);