From 098c96356d6cd6460fb7f5ab74db53d91add9333 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Sat, 11 Nov 2006 01:58:45 +0100 Subject: [PATCH] simplifications Signed-off-by: Pierre Habouzit --- madtty/madtty.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/madtty/madtty.c b/madtty/madtty.c index 3121367..80db4c6 100644 --- a/madtty/madtty.c +++ b/madtty/madtty.c @@ -78,10 +78,6 @@ RoteTerm *rote_vt_create(int rows, int cols) rt->pd->scrolltop = 0; rt->pd->scrollbottom = rt->rows - 1; -#ifdef DEBUG - fprintf(stderr, "Created a %d x %d terminal.\n", rt->rows, rt->cols); -#endif - return rt; } @@ -109,12 +105,10 @@ static void default_cur_set_attr(WINDOW *win, unsigned char attr) if (ROTE_ATTR_BLINK(attr)) wattron(win, A_BLINK); } -#endif - -static inline unsigned char ensure_printable(unsigned char ch) -{ return ch >= 32 ? ch : 32; } - -#ifdef USE_NCURSES +static inline unsigned char ensure_printable(unsigned char ch) +{ + return ch >= 32 ? ch : 32; +} void rote_vt_draw(RoteTerm *rt, WINDOW *win, int srow, int scol, void (*cur_set_attr)(WINDOW*,unsigned char)) { -- 2.20.1