aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-file.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-26 06:15:49 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-26 06:15:49 +0000
commitfbc75a324a681f9cfc18433e0ab53da21913ad07 (patch)
treec7c7dff73e1d1134780e417669907280c524bbd6 /gdb/tui/tui-file.c
parent2894793a7b11779557cd7d50f5eec63acf3c46fd (diff)
downloadgdb-fbc75a324a681f9cfc18433e0ab53da21913ad07.zip
gdb-fbc75a324a681f9cfc18433e0ab53da21913ad07.tar.gz
gdb-fbc75a324a681f9cfc18433e0ab53da21913ad07.tar.bz2
Fix bitrot in tui-file.c.
Diffstat (limited to 'gdb/tui/tui-file.c')
-rw-r--r--gdb/tui/tui-file.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c
index 7822108..9bb2844 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 <string.h>
/* 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