From: Andrew Cagney Date: Fri, 26 May 2000 06:15:49 +0000 (+0000) Subject: Fix bitrot in tui-file.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbc75a324a681f9cfc18433e0ab53da21913ad07;p=binutils-gdb.git Fix bitrot in tui-file.c. --- diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index d7e8629c07b..d492a9d4966 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -1,3 +1,10 @@ +Thu May 25 14:46:20 2000 Andrew Cagney + + * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and + "tuiCommand.h". + (tui_file_fputs): Pass ``file'' and not ``stream'' to + tui_file_adjust_strbuf. + Thu May 25 16:58:01 2000 Andrew Cagney * tui.h: Include when available. diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c index 7822108de8a..9bb28441ed6 100644 --- a/gdb/tui/tui-file.c +++ b/gdb/tui/tui-file.c @@ -22,6 +22,13 @@ #include "ui-file.h" #include "tui/tui-file.h" +#ifdef TUI +#include "tui.h" +#include "tuiData.h" +#include "tuiIO.h" +#include "tuiCommand.h" +#endif + #include /* Called instead of fputs for all TUI_FILE output. */ @@ -196,7 +203,7 @@ tui_file_fputs (linebuffer, file) if (stream->ts_streamtype == astring) { - tui_file_adjust_strbuf (strlen (linebuffer), stream); + tui_file_adjust_strbuf (strlen (linebuffer), file); strcat (stream->ts_strbuf, linebuffer); } else @@ -215,7 +222,7 @@ tui_file_fputs (linebuffer, file) /* The normal case - just do a fputs() */ if (stream->ts_streamtype == astring) { - tui_file_adjust_strbuf (strlen (linebuffer), stream); + tui_file_adjust_strbuf (strlen (linebuffer), file); strcat (stream->ts_strbuf, linebuffer); } else