]> git.ozlabs.org Git - petitboot/commit
discover/grub2: Create 'conditional' statements
authorJeremy Kerr <jk@ozlabs.org>
Tue, 17 Sep 2013 05:02:05 +0000 (13:02 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 05:14:59 +0000 (13:14 +0800)
commit9638c29114c8d575d1b89c26dcf1f274ea6ab6c4
treed39b3d16444474f7018a1948d59c7e479f3fd5ee
parent63575c2045b1505da7a2abca8a51a4a7aa3df6f7
discover/grub2: Create 'conditional' statements

Rather than holding the condition and conditional-statements in struct
grub2_statment_if, create a new conditional type that contains these. We
can then use this to implement elif statements.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/grub2.h
discover/grub2/parser.y
discover/grub2/script.c