comparison urogue/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 51ddbe7b992d
children d71e5e1f49cf
comparison
equal deleted inserted replaced
281:4a3f4729257c 282:8b6aba552f6f
108 return(TRUE); 108 return(TRUE);
109 #endif 109 #endif
110 } 110 }
111 111
112 #ifdef attron 112 #ifdef attron
113 # define _puts(s) tputs(s, 0, md_putchar); 113 # define _puts(s) tputs(s, 0, putchar);
114 # define SO enter_standout_mode 114 # define SO enter_standout_mode
115 # define SE exit_standout_mode 115 # define SE exit_standout_mode
116 #endif 116 #endif
117
118 void
119 md_putchar(int c)
120 {
121 putchar(c);
122 }
123 117
124 static int md_standout_mode = 0; 118 static int md_standout_mode = 0;
125 119
126 void 120 void
127 md_raw_standout() 121 md_raw_standout()