Mercurial > hg > early-roguelike
diff 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 |
line wrap: on
line diff
--- a/arogue5/mdport.c Fri Sep 15 21:16:28 2017 -0400 +++ b/arogue5/mdport.c Mon Sep 18 19:11:57 2017 -0400 @@ -120,17 +120,11 @@ } #ifdef attron -# define _puts(s) tputs(s, 0, md_putchar); +# define _puts(s) tputs(s, 0, putchar); # define SO enter_standout_mode # define SE exit_standout_mode #endif -int -md_putchar(int c) -{ - putchar(c); -} - static int md_standout_mode = 0; int