mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
style: eliminate useless indirection
* src/relation.h, src/relation.c (relation_digraph): Don't take the biteetv as a pointer, it is already a pointer (as it's an array).
This commit is contained in:
@@ -99,7 +99,7 @@ traverse (relation_node i)
|
||||
|
||||
|
||||
void
|
||||
relation_digraph (relation r, relation_node size, bitsetv *function)
|
||||
relation_digraph (relation r, relation_node size, bitsetv function)
|
||||
{
|
||||
infinity = size + 2;
|
||||
indexes = xcalloc (size + 1, sizeof *indexes);
|
||||
@@ -107,7 +107,7 @@ relation_digraph (relation r, relation_node size, bitsetv *function)
|
||||
top = 0;
|
||||
|
||||
R = r;
|
||||
F = *function;
|
||||
F = function;
|
||||
|
||||
for (relation_node i = 0; i < size; i++)
|
||||
if (indexes[i] == 0 && R[i])
|
||||
@@ -116,7 +116,7 @@ relation_digraph (relation r, relation_node size, bitsetv *function)
|
||||
free (indexes);
|
||||
free (vertices);
|
||||
|
||||
*function = F;
|
||||
function = F;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user