2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+ * ui-out.c (ui_out_destroy, uo_data_destroy): Remove.
+ * ui-out.h (ui_out_destroy): Remove.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
* mi/mi-out.c (ui_out_data): Rename to ...
(mi_ui_out_data): ... this.
static void uo_wrap_hint (struct ui_out *uiout, char *identstring);
static void uo_flush (struct ui_out *uiout);
static int uo_redirect (struct ui_out *uiout, struct ui_file *outstream);
-static void uo_data_destroy (struct ui_out *uiout);
/* Prototypes for local functions */
return 0;
}
-void
-uo_data_destroy (struct ui_out *uiout)
-{
- if (!uiout->impl->data_destroy)
- return;
-
- uiout->impl->data_destroy (uiout);
-}
-
/* local functions */
/* List of column headers manipulation routines. */
uiout->table.header_next = NULL;
return uiout;
}
-
-/* Free UIOUT and the memory areas it references. */
-
-void
-ui_out_destroy (struct ui_out *uiout)
-{
- int i;
- struct ui_out_level *current;
-
- /* Make sure that all levels are freed in the case where levels have
- been pushed, but not popped before the ui_out object is
- destroyed. */
- for (i = 0;
- VEC_iterate (ui_out_level_p, uiout->levels, i, current);
- ++i)
- xfree (current);
-
- VEC_free (ui_out_level_p, uiout->levels);
- uo_data_destroy (uiout);
- clear_table (uiout);
- xfree (uiout);
-}
void *data,
int flags);
-/* Destroy a ui_out object. */
-
-extern void ui_out_destroy (struct ui_out *uiout);
-
/* Redirect the ouptut of a ui_out object temporarily. */
extern int ui_out_redirect (struct ui_out *uiout, struct ui_file *outstream);