mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-28 15:56:51 +00:00
f9d96d9f73
* Less warnings in boot & code segments * few more warnings gone * Ran formatter * z_view warning gone * -> 1 * f31 -> 31 * Remove function casts * Few more small improvements * Separate declaration and assignment in func_80091738 and Item_Give Co-authored-by: Thar0 <maximilianc64@gmail.com>
32 lines
663 B
C
32 lines
663 B
C
#ifndef _ULTRA64_PRINTF_H_
|
|
#define _ULTRA64_PRINTF_H_
|
|
#include "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 */ u32 nchar;
|
|
/* 0x30 */ u32 flags;
|
|
/* 0x34 */ u8 qual;
|
|
} _Pft; // size = 0x38
|
|
|
|
typedef void* (*PrintCallback)(void*, const char*, u32);
|
|
|
|
#define FLAGS_SPACE 1
|
|
#define FLAGS_PLUS 2
|
|
#define FLAGS_MINUS 4
|
|
#define FLAGS_HASH 8
|
|
#define FLAGS_ZERO 16
|
|
|
|
#endif
|