OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
r288@cf-ppc-macosx: monabuilder | 2008-12-07 13:17:34 +0900
[pf3gnuchains/pf3gnuchains3x.git]
/
newlib
/
libc
/
machine
/
spu
/
vprintf.c
1
#include <_ansi.h>
2
#include <stdio.h>
3
4
#include "c99ppe.h"
5
6
#ifdef _HAVE_STDC
7
#include <stdarg.h>
8
#else
9
#include <varargs.h>
10
#endif
11
12
#ifdef INTEGER_ONLY
13
# define vprintf viprintf
14
#endif
15
16
typedef struct
17
{
18
_CONST char* fmt;
19
unsigned int pad0[ 3 ];
20
va_list ap;
21
} c99_vprintf_t;
22
23
#ifndef _REENT_ONLY
24
25
int
26
_DEFUN (vprintf, (fmt, ap),
27
_CONST char *fmt _AND
28
va_list ap)
29
{
30
c99_vprintf_t args;
31
32
CHECK_STD_INIT(_REENT);
33
34
args.fmt = fmt;
35
va_copy(args.ap,ap);
36
37
return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
38
}
39
40
#endif /* ! _REENT_ONLY */