top(1): remove wrapper around putchar
This appears to have been written for portability which we no longer need.
This commit is contained in:
parent
960a7f3960
commit
2c1fdbac13
@ -323,11 +323,3 @@ go_home(void)
|
||||
putcap(home);
|
||||
}
|
||||
}
|
||||
|
||||
/* This has to be defined as a subroutine for tputs (instead of a macro) */
|
||||
|
||||
int
|
||||
putstdout(int ch)
|
||||
{
|
||||
return putchar(ch);
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define TCputs(str) tputs(str, 1, putstdout)
|
||||
#define TCputs(str) tputs(str, 1, putchar)
|
||||
#define putcap(str) (void)((str) != NULL ? TCputs(str) : 0)
|
||||
#define Move_to(x, y) TCputs(tgoto(cursor_motion, x, y))
|
||||
|
||||
@ -26,7 +26,6 @@ extern int screen_length;
|
||||
extern int screen_width;
|
||||
|
||||
/* a function that puts a single character on stdout */
|
||||
int putstdout(int ch);
|
||||
int clear_eol(int len);
|
||||
void top_standout(char *msg);
|
||||
void top_clear(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user