Mercurial > hg > early-roguelike
diff rogue5/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 | 3d4252fa2ed3 |
children | 5b6855d5d089 |
line wrap: on
line diff
--- a/rogue5/mdport.c Fri Sep 15 21:16:28 2017 -0400 +++ b/rogue5/mdport.c Mon Sep 18 19:11:57 2017 -0400 @@ -278,12 +278,6 @@ #endif } -void -md_putchar(int c) -{ - putchar(c); -} - #ifdef _WIN32 static int md_standout_mode = 0; #endif @@ -306,7 +300,7 @@ md_standout_mode = 1; } #elif defined(SO) - tputs(SO,0,md_putchar); + tputs(SO,0,putchar); fflush(stdout); #endif } @@ -329,7 +323,7 @@ md_standout_mode = 0; } #elif defined(SE) - tputs(SE,0,md_putchar); + tputs(SE,0,putchar); fflush(stdout); #endif }