mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +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:
parent
d1dc1e927c
commit
a45ae81797
@ -34,7 +34,7 @@ int main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
while (!feof(stdin)) {
|
while (!feof(stdin)) {
|
||||||
len = fread(blk, 1, sizeof(blk), stdin);
|
len = fread(blk, 1, sizeof(blk), stdin);
|
||||||
term_data(term, false, blk, len);
|
term_data(term, blk, len);
|
||||||
}
|
}
|
||||||
term_update(term);
|
term_update(term);
|
||||||
return 0;
|
return 0;
|
||||||
|
2
putty.h
2
putty.h
@ -1900,7 +1900,7 @@ void term_reconfig(Terminal *, Conf *);
|
|||||||
void term_request_copy(Terminal *, const int *clipboards, int n_clipboards);
|
void term_request_copy(Terminal *, const int *clipboards, int n_clipboards);
|
||||||
void term_request_paste(Terminal *, int clipboard);
|
void term_request_paste(Terminal *, int clipboard);
|
||||||
void term_seen_key_event(Terminal *);
|
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_backend(Terminal *term, Backend *backend);
|
||||||
void term_provide_logctx(Terminal *term, LogContext *logctx);
|
void term_provide_logctx(Terminal *term, LogContext *logctx);
|
||||||
void term_set_focus(Terminal *term, bool has_focus);
|
void term_set_focus(Terminal *term, bool has_focus);
|
||||||
|
@ -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);
|
bufchain_add(&term->inbuf, data, len);
|
||||||
term_added_data(term);
|
term_added_data(term);
|
||||||
@ -7516,7 +7516,7 @@ struct term_userpass_state {
|
|||||||
/* Tiny wrapper to make it easier to write lots of little strings */
|
/* Tiny wrapper to make it easier to write lots of little strings */
|
||||||
static inline void term_write(Terminal *term, ptrlen data)
|
static inline void term_write(Terminal *term, ptrlen data)
|
||||||
{
|
{
|
||||||
term_data(term, false, data.ptr, data.len);
|
term_data(term, data.ptr, data.len);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -322,7 +322,7 @@ static size_t gtk_seat_output(Seat *seat, bool is_stderr,
|
|||||||
const void *data, size_t len)
|
const void *data, size_t len)
|
||||||
{
|
{
|
||||||
GtkFrontend *inst = container_of(seat, GtkFrontend, seat);
|
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)
|
static bool gtk_seat_eof(Seat *seat)
|
||||||
|
@ -5737,7 +5737,7 @@ static void flip_full_screen()
|
|||||||
static size_t win_seat_output(Seat *seat, bool is_stderr,
|
static size_t win_seat_output(Seat *seat, bool is_stderr,
|
||||||
const void *data, size_t len)
|
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)
|
static bool win_seat_eof(Seat *seat)
|
||||||
|
Loading…
Reference in New Issue
Block a user