X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fcommand.c;h=0a198bc94c4f6015c128477cd9641abc42136030;hb=456b47421c16fdbbfe7f1e74e661d7c7876ff6df;hp=8f955b3e4987022ab1bd66950bf0a956668cd206;hpb=3dd0f6ae0d5eb73a2270a243e443c4ae03c2c16e;p=pspp diff --git a/src/language/command.c b/src/language/command.c index 8f955b3e49..0a198bc94c 100644 --- a/src/language/command.c +++ b/src/language/command.c @@ -36,7 +36,7 @@ #include "libpspp/i18n.h" #include "libpspp/message.h" #include "libpspp/str.h" -#include "output/text-item.h" +#include "output/group-item.h" #include "xalloc.h" #include "xmalloca.h" @@ -199,7 +199,7 @@ do_parse_command (struct lexer *lexer, result = CMD_FAILURE; goto finish; } - text_item_submit (text_item_create (TEXT_ITEM_COMMAND_OPEN, command->name)); + group_open_item_submit (group_open_item_create (command->name)); opened = true; if (command->function == NULL) @@ -247,8 +247,7 @@ finish: lex_get (lexer); if (opened) - text_item_submit (text_item_create (TEXT_ITEM_COMMAND_CLOSE, - command->name)); + group_close_item_submit (group_close_item_create ()); return result; }