From 89de4da46b3b3629c51e6e1a37177a6269dc8b05 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 23 Dec 2013 20:53:23 -0700 Subject: constify ui_out_impl This patch constifies ui_out_impl in struct ui_out, and various instances of ui_out_impl. This removes a couple of FIXME comments (near cli_ui_out_impl and mi_ui_out_impl) that did not make sense to me. Tested by rebuilding. 2014-02-28 Tom Tromey * cli-out.c (cli_ui_out_impl): Now const. Remove comment. * cli-out.h (cli_ui_out_impl): Now const. * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment. * ui-out.c (struct ui_out) : Now const. (default_ui_out_impl): Now const. (ui_out_new): Make 'impl' parameter const. * ui-out.h (ui_out_new): Update. --- gdb/ui-out.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ui-out.h') diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 27e6801..cbd0b9b 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -234,7 +234,7 @@ extern void uo_field_string (struct ui_out *uiout, int fldno, int width, /* Create a ui_out object */ -extern struct ui_out *ui_out_new (struct ui_out_impl *impl, +extern struct ui_out *ui_out_new (const struct ui_out_impl *impl, void *data, int flags); -- cgit v1.1