Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
272 bytes
|
Rev | Line | |
---|
[444] | 1 | #include <stdio.h> |
---|
| 2 | |
---|
| 3 | #include "c99ppe.h" |
---|
| 4 | |
---|
| 5 | #undef putchar |
---|
| 6 | |
---|
| 7 | #ifndef _REENT_ONLY |
---|
| 8 | |
---|
| 9 | int |
---|
| 10 | putchar (c) |
---|
| 11 | int c; |
---|
| 12 | { |
---|
| 13 | CHECK_STD_INIT(_REENT); |
---|
| 14 | |
---|
| 15 | /* c gets overwritten before return */ |
---|
| 16 | |
---|
| 17 | return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PUTCHAR, &c); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | #endif /* ! _REENT_ONLY */ |
---|
Note: See
TracBrowser
for help on using the repository browser.