mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
Birdtest: Refactore functions (only rename)
This commit is contained in:
parent
5419d2a3c5
commit
a22d36256e
@ -71,7 +71,7 @@ is_empty_list_well_unlinked(void)
|
||||
}
|
||||
|
||||
static void
|
||||
init_list_2(list *l, struct node nodes[])
|
||||
init_list__(list *l, struct node nodes[])
|
||||
{
|
||||
init_list(l);
|
||||
|
||||
@ -86,7 +86,7 @@ init_list_2(list *l, struct node nodes[])
|
||||
static void
|
||||
init_list_(void)
|
||||
{
|
||||
init_list_2(&l, (node *) nodes);
|
||||
init_list__(&l, (node *) nodes);
|
||||
}
|
||||
|
||||
static int
|
||||
@ -256,10 +256,10 @@ t_add_tail_list(void)
|
||||
node nodes2[MAX_NUM];
|
||||
list l2;
|
||||
|
||||
init_list_2(&l, (node *) nodes);
|
||||
init_list__(&l, (node *) nodes);
|
||||
fill_list2(&l, (node *) nodes);
|
||||
|
||||
init_list_2(&l2, (node *) nodes2);
|
||||
init_list__(&l2, (node *) nodes2);
|
||||
fill_list2(&l2, (node *) nodes2);
|
||||
|
||||
add_tail_list(&l, &l2);
|
||||
|
@ -65,7 +65,7 @@ is_empty_list_well_unlinked(void)
|
||||
}
|
||||
|
||||
static void
|
||||
init_list_2(slist *l, struct snode nodes[])
|
||||
init_list__(slist *l, struct snode nodes[])
|
||||
{
|
||||
s_init_list(l);
|
||||
|
||||
@ -80,7 +80,7 @@ init_list_2(slist *l, struct snode nodes[])
|
||||
static void
|
||||
init_list_(void)
|
||||
{
|
||||
init_list_2(&lst, nodes);
|
||||
init_list__(&lst, nodes);
|
||||
}
|
||||
|
||||
static int
|
||||
@ -222,10 +222,10 @@ t_add_tail_list(void)
|
||||
snode nodes2[MAX_NUM];
|
||||
slist l2;
|
||||
|
||||
init_list_2(&lst, SNODE &nodes);
|
||||
init_list__(&lst, SNODE &nodes);
|
||||
fill_list2(&lst, SNODE &nodes);
|
||||
|
||||
init_list_2(&l2, SNODE &nodes2);
|
||||
init_list__(&l2, SNODE &nodes2);
|
||||
fill_list2(&l2, SNODE &nodes2);
|
||||
|
||||
s_add_tail_list(&lst, &l2);
|
||||
|
Loading…
Reference in New Issue
Block a user