Commit fe189fca authored by dcw's avatar dcw
Browse files

NEW_ -> NEW

parent f52c95b7
...@@ -18,10 +18,12 @@ ...@@ -18,10 +18,12 @@
#include <dcw.h> #include <dcw.h>
#include "struct.h" #include "struct.h"
#define Puts(s) fputs(s,stdout)
declnlist build_declnlist(name,s,next) char *name; shapelist s; declnlist next; declnlist build_declnlist(name,s,next) char *name; shapelist s; declnlist next;
{ {
declnlist new = NEW_(declnlist); declnlist new = NEW(declnlist);
COPYOF(new->name, name); COPYOF(new->name, name);
new->shapes = s; new->shapes = s;
...@@ -44,7 +46,7 @@ void print_declnlist(d) declnlist d; ...@@ -44,7 +46,7 @@ void print_declnlist(d) declnlist d;
shapelist build_shapelist(id, p, pl, next) char *id; paramlist p; printlist pl; shapelist next; shapelist build_shapelist(id, p, pl, next) char *id; paramlist p; printlist pl; shapelist next;
{ {
shapelist new = NEW_(shapelist); shapelist new = NEW(shapelist);
COPYOF(new->name, id); COPYOF(new->name, id);
new->params = p; new->params = p;
...@@ -84,7 +86,7 @@ void print_shapelist(s) shapelist s; ...@@ -84,7 +86,7 @@ void print_shapelist(s) shapelist s;
paramlist build_paramlist(type, id, next) char *type, *id; paramlist next; paramlist build_paramlist(type, id, next) char *type, *id; paramlist next;
{ {
paramlist new = NEW_(paramlist); paramlist new = NEW(paramlist);
COPYOF(new->type, type); COPYOF(new->type, type);
COPYOF(new->name, id); COPYOF(new->name, id);
...@@ -109,7 +111,7 @@ void print_paramlist(p) paramlist p; ...@@ -109,7 +111,7 @@ void print_paramlist(p) paramlist p;
printitem build_printitem_str(s) char *s; printitem build_printitem_str(s) char *s;
{ {
printitem new = NEW_( printitem ); printitem new = NEW( printitem );
new->tag = printitem_is_str; new->tag = printitem_is_str;
new->str = s; new->str = s;
...@@ -120,7 +122,7 @@ printitem build_printitem_str(s) char *s; ...@@ -120,7 +122,7 @@ printitem build_printitem_str(s) char *s;
printitem build_printitem_num(n) int n; printitem build_printitem_num(n) int n;
{ {
printitem new = NEW_(printitem); printitem new = NEW(printitem);
new->tag = printitem_is_num; new->tag = printitem_is_num;
new->num = n; new->num = n;
...@@ -147,7 +149,7 @@ void print_printitem(i) printitem i; ...@@ -147,7 +149,7 @@ void print_printitem(i) printitem i;
printlist build_printlist(h, t) printitem h; printlist t; printlist build_printlist(h, t) printitem h; printlist t;
{ {
printlist new = NEW_(printlist); printlist new = NEW(printlist);
new->item = h; new->item = h;
new->next = t; new->next = t;
......
Supports Markdown
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