coastline
0.0.4
Loading...
Searching...
No Matches
src
n64
libultra
libc
xstdio.h
Go to the documentation of this file.
1
#ifndef LIBULTRA_LIBC_XSTDIO_H
2
#define LIBULTRA_LIBC_XSTDIO_H
3
8
9
#include <
stdarg.h
>
10
11
#include <
ultra64.h
>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
/* Conversion flags. */
18
#define FLAGS_SPACE 0x01
19
#define FLAGS_PLUS 0x02
20
#define FLAGS_MINUS 0x04
21
#define FLAGS_HASH 0x08
22
#define FLAGS_ZERO 0x10
23
24
/* The indices of the halfwords of a double in memory, most significant first. */
25
#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
26
#define _D0 3
27
#define _D1 2
28
#define _D2 1
29
#define _D3 0
30
#else
31
#define _D0 0
32
#define _D1 1
33
#define _D2 2
34
#define _D3 3
35
#endif
/* defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
36
38
typedef
void
*(*outfun)(
void
*arg,
const
char
*s,
size_t
count);
39
40
typedef
struct
{
41
union
{
42
long
long
ll;
43
double
ld;
44
u16
hw[4];
45
} v;
46
char
*s;
47
int
n0;
48
int
nz0;
49
int
n1;
50
int
nz1;
51
int
n2;
52
int
nz2;
53
int
prec;
54
int
width;
55
size_t
nchar;
56
unsigned
int
flags;
57
char
qual;
58
} _Pft;
59
66
int
_Printf(
outfun
prout,
char
*arg,
const
char
*fmt,
va_list
args);
67
74
void
_Litob(_Pft *px,
char
code);
75
82
void
_Ldtob(_Pft *px,
char
code);
83
93
extern
char
spaces[33];
94
101
extern
char
zeroes[33];
102
111
extern
const
char
fchar[6];
112
119
extern
const
int
fbit[6];
120
127
extern
char
g_szHexDigitsLower[17];
128
135
extern
char
g_szHexDigitsUpper[17];
136
145
extern
const
double
g_adblPowersOfTen[9];
147
148
#ifdef __cplusplus
149
}
150
#endif
151
152
#endif
/* LIBULTRA_LIBC_XSTDIO_H */
stdarg.h
ultra64.h
Umbrella header of the reconstructed libultra.
u16
unsigned short u16
Definition
ultratypes.h:19
va_list
outfun
void *(* outfun)(void *arg, const char *s, size_t count)
A routine that appends count characters to arg and returns the new position, or NULL.
Definition
xstdio.h:38
Generated by
1.15.0