]> git.proxmox.com Git - grub2.git/commit
Replace single-linked with double-linked lists. It results in more
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 24 Jan 2012 12:31:12 +0000 (13:31 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 24 Jan 2012 12:31:12 +0000 (13:31 +0100)
commit87edb8940a47a3c775bfd26317174468e3dd9eec
treea726323a8ec0f5c6c744990c884755b266c9813b
parent48b391e9ab2b9489700b87f779c3fd1fc505dd09
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.
27 files changed:
ChangeLog
grub-core/bus/usb/usb.c
grub-core/commands/terminal.c
grub-core/disk/ahci.c
grub-core/gettext/gettext.c
grub-core/kern/command.c
grub-core/kern/emu/hostdisk.c
grub-core/kern/list.c
grub-core/loader/i386/xnu.c
grub-core/net/net.c
grub-core/net/tcp.c
grub-core/net/udp.c
grub-core/normal/auth.c
grub-core/term/serial.c
grub-core/tests/lib/test.c
include/grub/command.h
include/grub/cryptodisk.h
include/grub/fs.h
include/grub/list.h
include/grub/net.h
include/grub/partition.h
include/grub/serial.h
include/grub/term.h
include/grub/test.h
include/grub/usb.h
include/grub/video.h
util/deviceiter.c