Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Duncan White
C-datadec
Commits
fe189fca
Commit
fe189fca
authored
Jul 14, 1992
by
dcw
Browse files
NEW_ -> NEW
parent
f52c95b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
struct.c
View file @
fe189fca
...
...
@@ -18,10 +18,12 @@
#include
<dcw.h>
#include
"struct.h"
#define Puts(s) fputs(s,stdout)
declnlist
build_declnlist
(
name
,
s
,
next
)
char
*
name
;
shapelist
s
;
declnlist
next
;
{
declnlist
new
=
NEW
_
(
declnlist
);
declnlist
new
=
NEW
(
declnlist
);
COPYOF
(
new
->
name
,
name
);
new
->
shapes
=
s
;
...
...
@@ -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
new
=
NEW
_
(
shapelist
);
shapelist
new
=
NEW
(
shapelist
);
COPYOF
(
new
->
name
,
id
);
new
->
params
=
p
;
...
...
@@ -84,7 +86,7 @@ void print_shapelist(s) shapelist s;
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
->
name
,
id
);
...
...
@@ -109,7 +111,7 @@ void print_paramlist(p) paramlist p;
printitem
build_printitem_str
(
s
)
char
*
s
;
{
printitem
new
=
NEW
_
(
printitem
);
printitem
new
=
NEW
(
printitem
);
new
->
tag
=
printitem_is_str
;
new
->
str
=
s
;
...
...
@@ -120,7 +122,7 @@ printitem build_printitem_str(s) char *s;
printitem
build_printitem_num
(
n
)
int
n
;
{
printitem
new
=
NEW
_
(
printitem
);
printitem
new
=
NEW
(
printitem
);
new
->
tag
=
printitem_is_num
;
new
->
num
=
n
;
...
...
@@ -147,7 +149,7 @@ void print_printitem(i) printitem i;
printlist
build_printlist
(
h
,
t
)
printitem
h
;
printlist
t
;
{
printlist
new
=
NEW
_
(
printlist
);
printlist
new
=
NEW
(
printlist
);
new
->
item
=
h
;
new
->
next
=
t
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment