2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>

* include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
        'exec_to_evaluate'.  Renamed field 'true' to 'exec_on_true'.  Renamed
        field 'false' to 'exec_on_false'.
        (grub_script_create_cmdif): Renamed argument names to reflect above
        changes.

        * normal/execute.c (grub_script_execute_cmdif): Likewise.

        * normal/script.c (grub_script_create_cmdif): Likewise.
This commit is contained in:
chaac 2006-05-28 21:58:35 +00:00
parent 118f4fb31e
commit f09771a102
4 changed files with 36 additions and 24 deletions

View file

@ -100,14 +100,14 @@ struct grub_script_cmdif
{
struct grub_script_cmd cmd;
/* The command used to check if the if is true or false. */
struct grub_script_cmd *bool;
/* The command used to check if the 'if' is true or false. */
struct grub_script_cmd *exec_to_evaluate;
/* The code executed in case the result if bool was true. */
struct grub_script_cmd *true;
/* The code executed in case the result of 'if' was true. */
struct grub_script_cmd *exec_on_true;
/* The code executed in case the result if bool was false. */
struct grub_script_cmd *false;
/* The code executed in case the result of 'if' was false. */
struct grub_script_cmd *exec_on_false;
};
/* A menu entry generate statement. */
@ -200,9 +200,9 @@ grub_script_create_cmdblock (struct grub_parser_param *state);
struct grub_script_cmd *
grub_script_create_cmdif (struct grub_parser_param *state,
struct grub_script_cmd *bool,
struct grub_script_cmd *true,
struct grub_script_cmd *false);
struct grub_script_cmd *exec_to_evaluate,
struct grub_script_cmd *exec_on_true,
struct grub_script_cmd *exec_on_false);
struct grub_script_cmd *
grub_script_create_cmdmenu (struct grub_parser_param *state,