[OUTPUT] Make outc an inline function
commit4f9c19f9ba8dc756e732e0f17c1a2b2433eae467
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 7 Jul 2011 07:20:29 +0000 (7 15:20 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 Jul 2011 08:41:14 +0000 (7 16:41 +0800)
treef8cef04eab98b39fb3d3f618717e536f0795ef51
parent8685de4a289cce690c4f828742de0714b8c0eaaa
[OUTPUT] Make outc an inline function

As "gcc -pedantic" warns, ISO C forbids conditional expressions with
only one void side.  So the (needslow ?  slowpath() : fastpath) code
for outc in the !USE_GLIBC_STDIO case might not be portable.

More importantly, it's hard to read.  Rip it out and replace it
with an inline function which should generate the same code.

Reported-by: Szabolcs Nagy <nsz@port70.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
ChangeLog
src/output.h