break;
case OUTPUT_ITEM_TABLE:
+ printf ("table\n");
pivot_table_dump (item->table, indentation + 1);
break;
case OUTPUT_ITEM_TEXT:
- printf ("text %s \"%s\"\n",
- text_item_subtype_to_string (item->text.subtype),
- pivot_value_to_string_defaults (item->text.content));
+ {
+ char *s = pivot_value_to_string_defaults (item->text.content);
+ printf ("text %s \"%s\"\n",
+ text_item_subtype_to_string (item->text.subtype), s);
+ free (s);
+ }
break;
}
}
ex->font_style->typeface = xstrdup ("Monospaced");
}
- struct output_item *item = xzalloc (sizeof *item);
+ struct output_item *item = XZALLOC (struct output_item);
*item = (struct output_item) {
OUTPUT_ITEM_INITIALIZER (OUTPUT_ITEM_TEXT),
.command_name = xstrdup_if_nonnull (output_get_command_name ()),