Fix bitrot in tui-file.c.
authorAndrew Cagney <cagney@redhat.com>
Fri, 26 May 2000 06:15:49 +0000 (06:15 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 26 May 2000 06:15:49 +0000 (06:15 +0000)
gdb/tui/ChangeLog
gdb/tui/tui-file.c

index d7e8629c07b0cf9b52e31c6bc36484e5504b4eac..d492a9d49663a456de0df51081ac4020c04f6f3f 100644 (file)
@@ -1,3 +1,10 @@
+Thu May 25 14:46:20 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * 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  <cagney@b1.cygnus.com>
 
        * tui.h: Include <ncurses.h> when available.
index 7822108de8aaef9ac4ef59e5444eed8b3f77e4e4..9bb28441ed659cc485bc5447e5d4fc33a5e08c36 100644 (file)
 #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
This page took 0.025549 seconds and 4 git commands to generate.