Fix bitrot in tui-file.c.
This commit is contained in:
parent
2894793a7b
commit
fbc75a324a
2 changed files with 16 additions and 2 deletions
|
@ -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>
|
Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* tui.h: Include <ncurses.h> when available.
|
* tui.h: Include <ncurses.h> when available.
|
||||||
|
|
|
@ -22,6 +22,13 @@
|
||||||
#include "ui-file.h"
|
#include "ui-file.h"
|
||||||
#include "tui/tui-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>
|
#include <string.h>
|
||||||
|
|
||||||
/* Called instead of fputs for all TUI_FILE output. */
|
/* Called instead of fputs for all TUI_FILE output. */
|
||||||
|
@ -196,7 +203,7 @@ tui_file_fputs (linebuffer, file)
|
||||||
|
|
||||||
if (stream->ts_streamtype == astring)
|
if (stream->ts_streamtype == astring)
|
||||||
{
|
{
|
||||||
tui_file_adjust_strbuf (strlen (linebuffer), stream);
|
tui_file_adjust_strbuf (strlen (linebuffer), file);
|
||||||
strcat (stream->ts_strbuf, linebuffer);
|
strcat (stream->ts_strbuf, linebuffer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -215,7 +222,7 @@ tui_file_fputs (linebuffer, file)
|
||||||
/* The normal case - just do a fputs() */
|
/* The normal case - just do a fputs() */
|
||||||
if (stream->ts_streamtype == astring)
|
if (stream->ts_streamtype == astring)
|
||||||
{
|
{
|
||||||
tui_file_adjust_strbuf (strlen (linebuffer), stream);
|
tui_file_adjust_strbuf (strlen (linebuffer), file);
|
||||||
strcat (stream->ts_strbuf, linebuffer);
|
strcat (stream->ts_strbuf, linebuffer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue