Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-08-10 | stdio.h: correct return type of putc | Ori Bernstein | |
The putc macro is specified as returning an int, but our type conversion rules turned it into a uint. Put in the appropriate cast to make the type what we want. | |||
2020-07-19 | stdio: fix warnings, make code more standard | Ori Bernstein | |
Masking with _IO_CHMASK after the assignment causes a warning. We're better off masking before, but casting the assignment to prevent sign extension. | |||
2020-07-11 | stdio, ape/stdio: fix order of operations in putc | Ori Bernstein | |
When calling putc, we need to return either EOF or the character returned. To distinguish the two, we need to avoid sign extending 0xff. The code attempted to do this, but the order of operations was wrong, so we ended up masking, setting a character, and then sign extending the character. This fixes things so we mask after assignment. | |||
2019-06-20 | stdio: fix putc(), plan9 version | cinap_lenrek | |
2011-03-30 | Import sources from 2011-03-30 iso image - lib | Taru Karttunen | |
2011-03-30 | Import sources from 2011-03-30 iso image - sys/include | Taru Karttunen | |