mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
detect third argument type of puts
This commit is contained in:
parent
6276fe1a68
commit
9f0b2bc50d
3 changed files with 36 additions and 9 deletions
|
|
@ -318,7 +318,12 @@ void term_window_scroll(TERM_WINDOW *window, int count)
|
|||
term_lines_empty[window->y+y] = FALSE;
|
||||
}
|
||||
|
||||
inline static int term_putchar(int c)
|
||||
#ifdef TPUTS_SVR4
|
||||
#define putc_arg_t char
|
||||
#else
|
||||
#define putc_arg_t int
|
||||
#endif
|
||||
inline static int term_putchar(putc_arg_t c)
|
||||
{
|
||||
return fputc(c, current_term->out);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,13 @@
|
|||
# define _POSIX_VDISABLE 0
|
||||
#endif
|
||||
|
||||
#ifdef TPUTS_SVR4
|
||||
#define putc_arg_t char
|
||||
#else
|
||||
#define putc_arg_t int
|
||||
#endif
|
||||
#define tput(s) tputs(s, 0, term_putchar)
|
||||
inline static int term_putchar(int c)
|
||||
inline static int term_putchar(putc_arg_t c)
|
||||
{
|
||||
return fputc(c, current_term->out);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue