struct grub2_statement_menuentry *stmt =
talloc(parser, struct grub2_statement_menuentry);
stmt->st.type = STMT_TYPE_MENUENTRY;
- stmt->st.exec = NULL;
+ stmt->st.exec = statement_menuentry_execute;
stmt->argv = argv;
stmt->statements = stmts;
return &stmt->st;
{
struct grub2_word *word = talloc(parser, struct grub2_word);
word->type = GRUB2_WORD_TEXT;
+ word->split = false;
word->text = talloc_strdup(word, text);
word->next = NULL;
word->last = word;
{
struct grub2_word *word = talloc(parser, struct grub2_word);
word->type = GRUB2_WORD_VAR;
- word->var.name = talloc_strdup(word, name);
- word->var.split = split;
+ word->name = talloc_strdup(word, name);
+ word->split = split;
word->next = NULL;
word->last = word;
return word;