2006-12-19 04:39:02 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "c99ppe.h"
|
|
|
|
|
|
|
|
#undef putchar
|
|
|
|
|
2007-02-02 00:33:05 +08:00
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
|
2006-12-19 04:39:02 +08:00
|
|
|
int
|
|
|
|
putchar (c)
|
|
|
|
int c;
|
|
|
|
{
|
2007-02-02 00:33:05 +08:00
|
|
|
CHECK_STD_INIT(_REENT);
|
|
|
|
|
2006-12-19 04:39:02 +08:00
|
|
|
/* c gets overwritten before return */
|
|
|
|
|
2007-05-24 05:41:17 +08:00
|
|
|
return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PUTCHAR, &c);
|
2006-12-19 04:39:02 +08:00
|
|
|
}
|
|
|
|
|
2007-02-02 00:33:05 +08:00
|
|
|
#endif /* ! _REENT_ONLY */
|