comparison arogue5/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
118 return((CE != NULL) && (*CE != 0)); 118 return((CE != NULL) && (*CE != 0));
119 #endif 119 #endif
120 } 120 }
121 121
122 #ifdef attron 122 #ifdef attron
123 # define _puts(s) tputs(s, 0, md_putchar); 123 # define _puts(s) tputs(s, 0, putchar);
124 # define SO enter_standout_mode 124 # define SO enter_standout_mode
125 # define SE exit_standout_mode 125 # define SE exit_standout_mode
126 #endif 126 #endif
127
128 int
129 md_putchar(int c)
130 {
131 putchar(c);
132 }
133 127
134 static int md_standout_mode = 0; 128 static int md_standout_mode = 0;
135 129
136 int 130 int
137 md_raw_standout(void) 131 md_raw_standout(void)