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.
This commit is contained in:
parent
3349419ebc
commit
0936c8f216
7 changed files with 11 additions and 53 deletions
|
|
@ -278,12 +278,6 @@ md_hasclreol(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
md_putchar(int c)
|
||||
{
|
||||
putchar(c);
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
static int md_standout_mode = 0;
|
||||
#endif
|
||||
|
|
@ -306,7 +300,7 @@ md_raw_standout(void)
|
|||
md_standout_mode = 1;
|
||||
}
|
||||
#elif defined(SO)
|
||||
tputs(SO,0,md_putchar);
|
||||
tputs(SO,0,putchar);
|
||||
fflush(stdout);
|
||||
#endif
|
||||
}
|
||||
|
|
@ -329,7 +323,7 @@ md_raw_standend(void)
|
|||
md_standout_mode = 0;
|
||||
}
|
||||
#elif defined(SE)
|
||||
tputs(SE,0,md_putchar);
|
||||
tputs(SE,0,putchar);
|
||||
fflush(stdout);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue