2019-09-29 06:37:21 +00:00
|
|
|
#ifndef _XSTDIO_H_
|
|
|
|
#define _XSTDIO_H_
|
2021-11-06 02:44:58 +00:00
|
|
|
|
|
|
|
#include "libc/stdarg.h"
|
2019-09-29 06:37:21 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* 0x0 */ union {
|
2021-08-04 12:14:38 +00:00
|
|
|
/* 0x0 */ s64 ll;
|
|
|
|
/* 0x0 */ f64 ld;
|
2019-09-29 06:37:21 +00:00
|
|
|
} v;
|
2021-08-04 12:14:38 +00:00
|
|
|
/* 0x8 */ char* s;
|
|
|
|
/* 0xC */ s32 n0;
|
|
|
|
/* 0x10 */ s32 nz0;
|
|
|
|
/* 0x14 */ s32 n1;
|
|
|
|
/* 0x18 */ s32 nz1;
|
|
|
|
/* 0x1C */ s32 n2;
|
|
|
|
/* 0x20 */ s32 nz2;
|
|
|
|
/* 0x24 */ s32 prec;
|
|
|
|
/* 0x28 */ s32 width;
|
2019-09-29 06:37:21 +00:00
|
|
|
/* 0x2C */ size_t nchar;
|
2021-08-04 12:14:38 +00:00
|
|
|
/* 0x30 */ u32 flags;
|
|
|
|
/* 0x34 */ u8 qual;
|
2019-09-29 06:37:21 +00:00
|
|
|
} _Pft;
|
|
|
|
|
2021-11-05 15:03:11 +00:00
|
|
|
typedef void* (*PrintCallback)(void*, const char*, size_t);
|
|
|
|
|
|
|
|
#define FLAGS_SPACE 1
|
|
|
|
#define FLAGS_PLUS 2
|
|
|
|
#define FLAGS_MINUS 4
|
|
|
|
#define FLAGS_HASH 8
|
|
|
|
#define FLAGS_ZERO 16
|
|
|
|
|
2019-09-29 06:37:21 +00:00
|
|
|
#endif
|