1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Remove 'is_stderr' parameter from term_data.

It wasn't actually used for anything, and removing it now will save me
deciding what to do with it in the next commit.
This commit is contained in:
Simon Tatham 2021-09-16 14:50:59 +01:00
parent d1dc1e927c
commit a45ae81797
5 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ int main(int argc, char **argv)
#endif
while (!feof(stdin)) {
len = fread(blk, 1, sizeof(blk), stdin);
term_data(term, false, blk, len);
term_data(term, blk, len);
}
term_update(term);
return 0;

View File

@ -1900,7 +1900,7 @@ void term_reconfig(Terminal *, Conf *);
void term_request_copy(Terminal *, const int *clipboards, int n_clipboards);
void term_request_paste(Terminal *, int clipboard);
void term_seen_key_event(Terminal *);
size_t term_data(Terminal *, bool is_stderr, const void *data, size_t len);
size_t term_data(Terminal *, const void *data, size_t len);
void term_provide_backend(Terminal *term, Backend *backend);
void term_provide_logctx(Terminal *term, LogContext *logctx);
void term_set_focus(Terminal *term, bool has_focus);

View File

@ -7453,7 +7453,7 @@ static void term_added_data(Terminal *term)
}
}
size_t term_data(Terminal *term, bool is_stderr, const void *data, size_t len)
size_t term_data(Terminal *term, const void *data, size_t len)
{
bufchain_add(&term->inbuf, data, len);
term_added_data(term);
@ -7516,7 +7516,7 @@ struct term_userpass_state {
/* Tiny wrapper to make it easier to write lots of little strings */
static inline void term_write(Terminal *term, ptrlen data)
{
term_data(term, false, data.ptr, data.len);
term_data(term, data.ptr, data.len);
}
/*

View File

@ -322,7 +322,7 @@ static size_t gtk_seat_output(Seat *seat, bool is_stderr,
const void *data, size_t len)
{
GtkFrontend *inst = container_of(seat, GtkFrontend, seat);
return term_data(inst->term, is_stderr, data, len);
return term_data(inst->term, data, len);
}
static bool gtk_seat_eof(Seat *seat)

View File

@ -5737,7 +5737,7 @@ static void flip_full_screen()
static size_t win_seat_output(Seat *seat, bool is_stderr,
const void *data, size_t len)
{
return term_data(term, is_stderr, data, len);
return term_data(term, data, len);
}
static bool win_seat_eof(Seat *seat)