From: Paul Eggert Date: Fri, 22 Oct 2004 23:10:39 +0000 (+0000) Subject: (END_NODE): New macro. X-Git-Tag: BISON-2_0~81 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ed4cdb7afc331d2f5899b91fe1a0266a6177a3ee (END_NODE): New macro. (relation_node): Now unsigned int, not short int. --- diff --git a/src/relation.h b/src/relation.h index f79174c2..1c461f60 100644 --- 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;