comparison arogue7/mdport.c @ 282:8b6aba552f6f

Excise md_putchar(). The function wrapped the standard putchar(), doing nothing beside discarding the return value. That could cause problems with tputs(), which expects an int to be returned.
author John "Elwin" Edwards
date Mon, 18 Sep 2017 19:11:57 -0400
parents d3968e9cb98d
children d71e5e1f49cf
comparison
equal deleted inserted replaced
281:4a3f4729257c 282:8b6aba552f6f
93 ESCDELAY=250; 93 ESCDELAY=250;
94 #endif 94 #endif
95 } 95 }
96 96
97 #ifdef attron 97 #ifdef attron
98 # define _puts(s) tputs(s, 0, md_putchar); 98 # define _puts(s) tputs(s, 0, putchar);
99 # define SO enter_standout_mode 99 # define SO enter_standout_mode
100 # define SE exit_standout_mode 100 # define SE exit_standout_mode
101 #endif 101 #endif
102
103 int
104 md_putchar(int c)
105 {
106 putchar(c);
107 }
108 102
109 static int md_standout_mode = 0; 103 static int md_standout_mode = 0;
110 104
111 int 105 int
112 md_raw_standout(void) 106 md_raw_standout(void)