render: Render table_items instead of tables.
[pspp] / tests / output / render-test.c
index fbc0f208484d973f4170b053abd694d8761fca68..38940baa0c9c6bcf1749ea1d3b492522e539e7ca 100644 (file)
@@ -74,6 +74,7 @@ main (int argc, char **argv)
   FILE *input;
 
   set_program_name (argv[0]);
+  output_engine_push ();
   input_file_name = parse_options (argc, argv);
 
   if (!strcmp (input_file_name, "-"))
@@ -119,7 +120,7 @@ main (int argc, char **argv)
   if (input != stdin)
     fclose (input);
 
-  output_close ();
+  output_engine_pop ();
 
   return 0;
 }
@@ -457,7 +458,8 @@ read_table (FILE *stream, struct table **tables, size_t n_tables)
                   default:
                     error (1, 0, "unexpected subtable modifier \"%c\"", *text);
                   }
-              tab_subtable (tab, c, r, c + cs - 1, r + rs - 1, opt, table);
+              tab_subtable (tab, c, r, c + cs - 1, r + rs - 1, opt,
+                            table_item_create (table, NULL));
             }
           else
             tab_joint_text (tab, c, r, c + cs - 1, r + rs - 1, opt, text);