mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
cex: style: prefer "res" for the returned value
* src/derivation.c (derivation_new): here.
This commit is contained in:
@@ -76,12 +76,12 @@ void derivation_list_free (derivation_list dl)
|
|||||||
derivation *
|
derivation *
|
||||||
derivation_new (symbol_number sym, derivation_list children)
|
derivation_new (symbol_number sym, derivation_list children)
|
||||||
{
|
{
|
||||||
derivation *deriv = xmalloc (sizeof (derivation));
|
derivation *res = xmalloc (sizeof *res);
|
||||||
deriv->sym = sym;
|
res->sym = sym;
|
||||||
deriv->children = children;
|
res->children = children;
|
||||||
deriv->reference_count = 0;
|
res->reference_count = 0;
|
||||||
deriv->color = -1;
|
res->color = -1;
|
||||||
return deriv;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user