mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +00:00
style: reduce scopes
* src/symlist.c (symbol_list_free): New.
This commit is contained in:
@@ -148,14 +148,13 @@ symbol_list_append (symbol_list *list, symbol_list *node)
|
|||||||
void
|
void
|
||||||
symbol_list_free (symbol_list *list)
|
symbol_list_free (symbol_list *list)
|
||||||
{
|
{
|
||||||
symbol_list *node, *next;
|
for (symbol_list *next; list; list = next)
|
||||||
for (node = list; node; node = next)
|
|
||||||
{
|
{
|
||||||
next = node->next;
|
next = list->next;
|
||||||
named_ref_free (node->named_ref);
|
named_ref_free (list->named_ref);
|
||||||
if (node->content_type == SYMLIST_TYPE)
|
if (list->content_type == SYMLIST_TYPE)
|
||||||
free (node->content.sem_type);
|
free (list->content.sem_type);
|
||||||
free (node);
|
free (list);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user