XMALLOC -> MALLOC

This commit is contained in:
Paul Eggert
2002-12-13 08:49:08 +00:00
parent 04e309ce35
commit 4613f49b90
2 changed files with 5 additions and 4 deletions

View File

@@ -32,7 +32,7 @@
symbol_list * symbol_list *
symbol_list_new (symbol *sym, location loc) symbol_list_new (symbol *sym, location loc)
{ {
symbol_list *res = XMALLOC (symbol_list, 1); symbol_list *res = MALLOC (res, 1);
res->next = NULL; res->next = NULL;
res->sym = sym; res->sym = sym;
res->location = loc; res->location = loc;

View File

@@ -1,4 +1,5 @@
/* VCG description handler for Bison. /* VCG description handler for Bison.
Copyright (C) 2001, 2002 Free Software Foundation, Inc. Copyright (C) 2001, 2002 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler. This file is part of Bison, the GNU Compiler Compiler.
@@ -420,7 +421,7 @@ add_classname (graph *g, int val, const char *name)
{ {
struct classname *classname; struct classname *classname;
classname = XMALLOC (struct classname, 1); MALLOC (classname, 1);
classname->no = val; classname->no = val;
classname->name = name; classname->name = name;
classname->next = g->classname; classname->next = g->classname;
@@ -432,7 +433,7 @@ add_infoname (graph *g, int integer, const char *str)
{ {
struct infoname *infoname; struct infoname *infoname;
infoname = XMALLOC (struct infoname, 1); MALLOC (infoname, 1);
infoname->integer = integer; infoname->integer = integer;
infoname->chars = str; infoname->chars = str;
infoname->next = g->infoname; infoname->next = g->infoname;
@@ -446,7 +447,7 @@ add_colorentry (graph *g, int color_idx, int red_cp,
{ {
struct colorentry *ce; struct colorentry *ce;
ce = XMALLOC (struct colorentry, 1); MALLOC (ce, 1);
ce->color_index = color_idx; ce->color_index = color_idx;
ce->red_cp = red_cp; ce->red_cp = red_cp;
ce->green_cp = green_cp; ce->green_cp = green_cp;