diff options
author | David Carlton <carlton@bactrian.org> | 2003-08-05 17:13:34 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2003-08-05 17:13:34 +0000 |
commit | 3ec5308b78f02afc4a36c37cc327811e6adaa0e0 (patch) | |
tree | 872a6be534f681a23481be37b96a1894f07850dd /gdb/ui-out.c | |
parent | ecdd3a511bf8678ca05a7e6a40a61a68c12caf9d (diff) | |
download | gdb-3ec5308b78f02afc4a36c37cc327811e6adaa0e0.zip gdb-3ec5308b78f02afc4a36c37cc327811e6adaa0e0.tar.gz gdb-3ec5308b78f02afc4a36c37cc327811e6adaa0e0.tar.bz2 |
2003-08-05 David Carlton <carlton@kealia.com>
* configure.in (build_warnings): Delete -Wformat-nonliteral.
* configure (build_warnings): Ditto.
* Merge with mainline; tag is carlton_dictionary-20030805-merge.
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r-- | gdb/ui-out.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 71e6d6a..5fb8eaa 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -206,6 +206,7 @@ struct ui_out_impl default_ui_out_impl = default_message, default_wrap_hint, default_flush, + NULL, 0, /* Does not need MI hacks. */ }; @@ -254,6 +255,7 @@ static void uo_message (struct ui_out *uiout, int verbosity, const char *format, va_list args); 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); /* Prototypes for local functions */ @@ -638,6 +640,12 @@ ui_out_flush (struct ui_out *uiout) uo_flush (uiout); } +int +ui_out_redirect (struct ui_out *uiout, struct ui_file *outstream) +{ + return uo_redirect (uiout, outstream); +} + /* set the flags specified by the mask given */ int ui_out_set_flags (struct ui_out *uiout, int mask) @@ -981,6 +989,15 @@ uo_flush (struct ui_out *uiout) uiout->impl->flush (uiout); } +int +uo_redirect (struct ui_out *uiout, struct ui_file *outstream) +{ + if (!uiout->impl->redirect) + return -1; + uiout->impl->redirect (uiout, outstream); + return 0; +} + /* local functions */ /* list of column headers manipulation routines */ |