projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0859e43
)
(END_NODE): New macro.
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 22 Oct 2004 23:10:39 +0000
(23:10 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 22 Oct 2004 23:10:39 +0000
(23:10 +0000)
(relation_node): Now unsigned int, not short int.
src/relation.h
patch
|
blob
|
history
diff --git
a/src/relation.h
b/src/relation.h
index
f79174c
..
1c461f6
100644
(file)
--- a/
src/relation.h
+++ b/
src/relation.h
@@
-25,9
+25,11
@@
/* Performing operations on graphs coded as list of adjacency.
If GRAPH is a relation, then GRAPH[Node] is a list of adjacent
- nodes, ended with
-1
. */
+ nodes, ended with
END_NODE
. */
-typedef short int relation_node;
+#define END_NODE ((relation_node) -1)
+
+typedef unsigned int relation_node;
typedef relation_node *relation_nodes;
typedef relation_nodes *relation;