Replace single-linked with double-linked lists. It results in more
compact and more efficient code. * grub-core/kern/list.c (grub_list_push): Moved from here ... * include/grub/list.h (grub_list_push): ... to here. Set prev. (grub_list_remove): Moved from here ... * include/grub/list.h (grub_list_remove): ... here. Use and set prev. (grub_prio_list_insert): Set prev. * include/grub/list.h (grub_list): Add prev. All users updated.
This commit is contained in:
parent
48b391e9ab
commit
87edb8940a
27 changed files with 111 additions and 75 deletions
|
@ -369,6 +369,7 @@ get_xvd_disk_name (char *name, int unit)
|
|||
static struct seen_device
|
||||
{
|
||||
struct seen_device *next;
|
||||
struct seen_device **prev;
|
||||
const char *name;
|
||||
} *seen;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue