]> git.saurik.com Git - bison.git/commitdiff
XMALLOC -> MALLOC
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Dec 2002 08:49:08 +0000 (08:49 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Dec 2002 08:49:08 +0000 (08:49 +0000)
src/symlist.c
src/vcg.c

index 9d46d8a522dda81b83f525c807040fc54343d05a..5b25ac5689d86824fc7c587a117f3cfedf6c3ee3 100644 (file)
@@ -32,7 +32,7 @@
 symbol_list *
 symbol_list_new (symbol *sym, location loc)
 {
 symbol_list *
 symbol_list_new (symbol *sym, location loc)
 {
-  symbol_list *res = XMALLOC (symbol_list, 1);
+  symbol_list *res = MALLOC (res, 1);
   res->next = NULL;
   res->sym = sym;
   res->location = loc;
   res->next = NULL;
   res->sym = sym;
   res->location = loc;
index dda2e962b8268a6fe504beb3f187a8597275fea1..88755b28afcd9061792ae3fd6c531a6be7caad13 100644 (file)
--- a/src/vcg.c
+++ b/src/vcg.c
@@ -1,4 +1,5 @@
 /* VCG description handler for Bison.
 /* VCG description handler for Bison.
+
    Copyright (C) 2001, 2002 Free Software Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
    Copyright (C) 2001, 2002 Free Software Foundation, Inc.
 
    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->name = name;
   classname->next = g->classname;
   classname->no = val;
   classname->name = name;
   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->chars = str;
   infoname->next = g->infoname;
   infoname->integer = integer;
   infoname->chars = str;
   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->red_cp = red_cp;
   ce->green_cp = green_cp;
   ce->color_index = color_idx;
   ce->red_cp = red_cp;
   ce->green_cp = green_cp;