News for hackers. Stuff that matters.
Re:Vim's 400 line function to wait for keyboard input by sigzero on Wednesday July 15, 2015 @05:04PM (#9894071)
> he correct solution is to use a monotonically increasing time function, such Linux’s clock_gettime() or OS X’s mach_absolute_time().

At the expense of supporting FEWER platforms.

Re:Vim's 400 line function to wait for keyboard input by roghummal on Thursday July 16, 2015 @12:29AM (#9895487)
Another #ifdef would fix that!

A wrapper function could hide the extra #ifdef, taking it out of OP's count. A macro defined during compilation would be even better|harder to understand.