for loop support to grub script

This commit is contained in:
BVK Chaitanya 2010-01-23 11:03:41 +05:30
parent f7867a01d3
commit 4e6a305be4
8 changed files with 135 additions and 1 deletions

13
ChangeLog.for-loop Normal file
View file

@ -0,0 +1,13 @@
2010-01-12 BVK Chaitanya <bvk.groups@gmail.com>
For loop support to GRUB script.
* include/grub/script_sh.h (grub_script_cmdfor): New struct.
(grub_script_create_cmdfor): New function prototype.
(grub_script_execute_cmdfor): New function prototype.
* script/execute.c (grub_script_execute_cmdfor): New function.
* script/parser.y (command): New for command.
(forcmd): New grammar rule.
* script/script.c (grub_script_create_cmdfor): New function.
* util/grub-script-check.c (grub_script_execute_cmdfor): New
function.