From fbc75a324a681f9cfc18433e0ab53da21913ad07 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 26 May 2000 06:15:49 +0000 Subject: [PATCH] Fix bitrot in tui-file.c. --- gdb/tui/ChangeLog | 7 +++++++ gdb/tui/tui-file.c | 11 +++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) 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 -- 2.30.2