Stephen Heumann
bfb929f4a7
Remove the setbuf macro in favor of just calling the library function.
...
The macro was slightly broken in that its 'buf' argument might be evaluated twice. This could be a problem if it was, e.g., a call to an allocation function.
2017-11-12 23:57:28 -06:00
Stephen Heumann
dedd50c81e
Include prototypes for standard library functions that are also defined as macros.
...
This is needed to ensure correct behavior in cases where the macro is bypassed to access the library function, e.g. by enclosing the function name in parentheses or by taking its address.
2017-11-12 23:27:15 -06:00
Stephen Heumann
dddae89af0
Add prototypes for functions called by macros in <stdio.h>.
...
This avoids lint errors when using the setbuf() and rewind() macros.
This fixes #42 (libco01.c).
2017-10-28 22:58:26 -05:00
Stephen Heumann
f3431f8771
Fix types of CHAR_MAX and UCHAR_MAX in <limits.h>.
...
These should be of type int (not unsigned int), since that is what char and unsigned char now promote to.
2017-10-21 20:47:34 -05:00
Stephen Heumann
8be021eab1
Fix some tool call prototypes in tool headers.
...
Contrary to the previous comment in window.h, SetContentOrigin2 is in fact documented in TBR2, so a prototype for it was added.
2017-10-21 20:46:21 -05:00
Stephen Heumann
9d018cafe7
Add iso646.h, stdint.h, and inttypes.h headers.
...
These mostly comply with C99 and C11, with some exceptions noted in comments.
2017-10-21 20:40:41 -05:00
Stephen Heumann
3225a54d76
Move ORCACDefs directory to root level.
2017-10-21 20:21:37 -05:00