From: markus schnalke Date: Sat, 11 Feb 2012 10:29:26 +0000 (+0100) Subject: Removed the now unused SOprint(). X-Git-Tag: mmh-thesis-end~309 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=cebc12618d19409a25e332eef13e825df15a9bc2;hp=27826f9353e0f0b04590b7d0f8f83e60462b90f0;ds=sidebyside Removed the now unused SOprint(). --- diff --git a/uip/mhl.c b/uip/mhl.c index 274d43e..4c2f06e 100644 --- a/uip/mhl.c +++ b/uip/mhl.c @@ -242,7 +242,6 @@ static void m_popen(char *); void m_pclose(void); -int SOprintf(char *, ...); /* from termsbr.c */ int sc_width(void); /* from termsbr.c */ diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index c81cf92..15991c1 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -45,9 +45,6 @@ char *formsw = NULL; pid_t xpid = 0; -/* termsbr.c */ -int SOprintf(char *, ...); - /* mhparse.c */ int pidcheck(int); diff --git a/uip/termsbr.c b/uip/termsbr.c index 0568bf3..defc93f 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -60,8 +60,6 @@ static long speedcode; static int initCO = 0; static int CO = 80; /* number of colums */ -static char *SE = NULL; /* termcap string to end standout mode */ -static char *SO = NULL; /* termcap string to begin standout mode */ static char termcap[TXTSIZ]; @@ -123,10 +121,6 @@ read_termcap(void) cp = termcap; if ((bp = tgetstr("pc", &cp))) PC = *bp; - if (tgetnum("sg") <= 0) { - SE = tgetstr("se", &cp); - SO = tgetstr("so", &cp); - } } @@ -147,27 +141,3 @@ sc_width(void) return CO; } - - -/* -** print in standout mode -*/ -int -SOprintf(char *fmt, ...) -{ - va_list ap; - - read_termcap(); - if (!(SO && SE)) - return NOTOK; - - tputs(SO, 1, putchar); - - va_start(ap, fmt); - vprintf(fmt, ap); - va_end(ap); - - tputs(SE, 1, putchar); - - return OK; -}