1 |
/* VCG description handler for Bison. |
/* VCG description handler for Bison. |
2 |
|
|
3 |
Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of Bison, the GNU Compiler Compiler. |
This file is part of Bison, the GNU Compiler Compiler. |
421 |
{ |
{ |
422 |
struct classname *classname; |
struct classname *classname; |
423 |
|
|
424 |
classname = XMALLOC (struct classname, 1); |
MALLOC (classname, 1); |
425 |
classname->no = val; |
classname->no = val; |
426 |
classname->name = name; |
classname->name = name; |
427 |
classname->next = g->classname; |
classname->next = g->classname; |
433 |
{ |
{ |
434 |
struct infoname *infoname; |
struct infoname *infoname; |
435 |
|
|
436 |
infoname = XMALLOC (struct infoname, 1); |
MALLOC (infoname, 1); |
437 |
infoname->integer = integer; |
infoname->integer = integer; |
438 |
infoname->chars = str; |
infoname->chars = str; |
439 |
infoname->next = g->infoname; |
infoname->next = g->infoname; |
447 |
{ |
{ |
448 |
struct colorentry *ce; |
struct colorentry *ce; |
449 |
|
|
450 |
ce = XMALLOC (struct colorentry, 1); |
MALLOC (ce, 1); |
451 |
ce->color_index = color_idx; |
ce->color_index = color_idx; |
452 |
ce->red_cp = red_cp; |
ce->red_cp = red_cp; |
453 |
ce->green_cp = green_cp; |
ce->green_cp = green_cp; |