output-item: Collapse the inheritance hierarchy into a single struct.
[pspp] / src / language / utilities / echo.c
index 861fcf88bbf292fa8ee5669a6f1a7f67b8b8adf9..13fa72155645a94224dd2e96e9ca3990bec923cb 100644 (file)
@@ -20,7 +20,8 @@
 #include "language/lexer/lexer.h"
 #include "libpspp/message.h"
 #include "libpspp/str.h"
-#include "output/text-item.h"
+#include "output/output-item.h"
+#include "output/driver.h"
 
 #include "gl/xalloc.h"
 
@@ -34,8 +35,8 @@ cmd_echo (struct lexer *lexer, struct dataset *ds UNUSED)
   if (!lex_force_string (lexer))
     return CMD_FAILURE;
 
-  text_item_submit (text_item_create (TEXT_ITEM_LOG, lex_tokcstr (lexer),
-                                      _("Echo")));
+  output_submit (text_item_create (TEXT_ITEM_LOG, lex_tokcstr (lexer),
+                                   _("Echo")));
   lex_get (lexer);
 
   return CMD_SUCCESS;