Commit bf6b5ee5 authored by dcw's avatar dcw
Browse files

went to new dunc style of list allocation (NEW_ macro).

parent 128a414d
......@@ -21,7 +21,7 @@
declnlist build_declnlist(name,s,next) char *name; shapelist s; declnlist next;
{
declnlist new = NEW( struct declnlist_str );
declnlist new = NEW_(declnlist);
COPYOF(new->name, name);
new->shapes = s;
......@@ -44,7 +44,7 @@ void print_declnlist(d) declnlist d;
shapelist build_shapelist(id, p, pl, next) char *id; paramlist p; printlist pl; shapelist next;
{
shapelist new = NEW( struct shapelist_str );
shapelist new = NEW_(shapelist);
COPYOF(new->name, id);
new->params = p;
......@@ -84,7 +84,7 @@ void print_shapelist(s) shapelist s;
paramlist build_paramlist(type, id, next) char *type, *id; paramlist next;
{
paramlist new = NEW( struct paramlist_str );
paramlist new = NEW_(paramlist);
COPYOF(new->type, type);
COPYOF(new->name, id);
......@@ -109,7 +109,7 @@ void print_paramlist(p) paramlist p;
printitem build_printitem_str(s) char *s;
{
printitem new = NEW( struct printitem_str );
printitem new = NEW_( printitem );
new->tag = printitem_is_str;
new->str = s;
......@@ -120,7 +120,7 @@ printitem build_printitem_str(s) char *s;
printitem build_printitem_num(n) int n;
{
printitem new = NEW( struct printitem_str );
printitem new = NEW_(printitem);
new->tag = printitem_is_num;
new->num = n;
......@@ -147,7 +147,7 @@ void print_printitem(i) printitem i;
printlist build_printlist(h, t) printitem h; printlist t;
{
printlist new = NEW( struct printlist_str );
printlist new = NEW_(printlist);
new->item = h;
new->next = t;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment