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
0557a98e
Commit
0557a98e
authored
Apr 07, 1992
by
dcw
Browse files
idtree.leaf now has a string and an intlist;
updated this to reflect that
parent
f976bd8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/ctest.c
View file @
0557a98e
#include <stdio.h>
#include "x.h"
#include "
c
x.h"
intlist
int1
,
int2
,
int3
;
...
...
@@ -48,11 +48,11 @@ test_idtree()
{
idtree
id1
,
id2
,
id3
,
id4
,
id5
,
id6
;
id1
=
idtree_leaf
(
"hello"
);
id2
=
idtree_leaf
(
"there"
);
id1
=
idtree_leaf
(
"hello"
,
int1
);
id2
=
idtree_leaf
(
"there"
,
int2
);
id3
=
idtree_node
(
id1
,
id2
);
id4
=
idtree_node
(
id3
,
id1
);
id5
=
idtree_leaf
(
"zebedee"
);
id5
=
idtree_leaf
(
"zebedee"
,
int3
);
id6
=
idtree_node
(
id4
,
id5
);
printf
(
"idtrees:
\n
"
);
...
...
Write
Preview
Markdown
is supported
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