output-item: Make label a part of every output_item.
[pspp] / src / output / group-item.h
index 3633b14bf584ac2dcc00e5003387079b946a58b3..61593632cd513990a7b10f302f750db0f950cffc 100644 (file)
 struct group_open_item
   {
     struct output_item output_item;
+
+    /* Locale-invariant name of the command that produced the enclosed output.
+       May be NULL if the group doesn't enclose a particular command's
+       output. */
     char *command_name;
   };
 
-struct group_open_item *group_open_item_create (const char *command_name);
-struct group_open_item *group_open_item_create_nocopy (char *command_name);
+struct group_open_item *group_open_item_create (const char *command_name,
+                                                const char *label);
+struct group_open_item *group_open_item_create_nocopy (char *command_name,
+                                                       char *label);
 
 /* A group_close item. */
 struct group_close_item