mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
4fa13e4132
* Delete unused headers * Move PR and io to ultra64 * move headers to ultra64 * more cleanups * more reorganizing * i think that should be all * format * ifdef guards cleanup * Add IO_READ and IO_WRITE macros for future use * warnings * review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * warnings again * warn * ifdef guards * fix merge * fix merge * fix merge * bss * padutils.h * bss * bss * bss * fix merge * bss * bss * bss * fix merge * fixes * fixes * bss * bss * fix merge * fix * fix * fix includepaths * fix paths * bss * fix * ultra64/ -> PR/ * header guards * fix ehader guards * fix * fix++ * format * bss is borken * prevent 2 * :despair: * bss * rename assert to dbg_hungup * fix * a * fix * bss * fix * bss * bss --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
39 lines
811 B
C
39 lines
811 B
C
#ifndef PR_XSTDIO_H
|
|
#define PR_XSTDIO_H
|
|
|
|
#include "ultratypes.h"
|
|
#include "libc/stdarg.h"
|
|
|
|
typedef struct {
|
|
/* 0x0 */ union {
|
|
/* 0x0 */ s64 ll;
|
|
/* 0x0 */ f64 ld;
|
|
} v;
|
|
/* 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;
|
|
/* 0x2C */ size_t nchar;
|
|
/* 0x30 */ u32 flags;
|
|
/* 0x34 */ u8 qual;
|
|
} _Pft;
|
|
|
|
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
|
|
|
|
s32 _Printf(PrintCallback pfn, void* arg, const char* fmt, va_list ap);
|
|
void _Litob(_Pft* args, u8 type);
|
|
void _Ldtob(_Pft* args, u8 type);
|
|
|
|
#endif
|