]> git.proxmox.com Git - grub2.git/commit
While and until loops support to GRUB script.
authorBVK Chaitanya <bvk.groups@gmail.com>
Fri, 9 Apr 2010 16:34:21 +0000 (22:04 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Fri, 9 Apr 2010 16:34:21 +0000 (22:04 +0530)
commit34bb22dfa5baf8a99156bbdba216aa31f0ad6017
treeb25100b605a159b0641c4542668097e90aa686b4
parente215d8e02a47435a54f5c014c2ee99b59153d601
parentc41c00eab6fd52b8cc83fae8715ced4354c6a6b1
While and until loops support to GRUB script.

* include/grub/script_sh.h (grub_script_cmdwhile): New struct.
(grub_script_create_cmdwhile): New function prototype.
(grub_script_execute_cmdwhile): New function prototype.
* script/execute.c (grub_script_execute_cmdwhile): New function.
* script/parser.y (command): New commands.
(whilecmd): New grammar rule.
(untilcmd): New grammar rule.
* script/script.c (grub_script_create_cmdwhile): New function.
* util/grub-script-check.c (grub_script_execute_cmdwhile): New
function.

* tests/grub_script_while1.in: New testcase.
* conf/tests.rmk: Rule for new testcase.
ChangeLog