Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
printf.h
Go to the documentation of this file.
1 #ifndef _PRINTF_H_
2 #define _PRINTF_H_
3 #include <stdarg.h>
4 
5 typedef struct
6 {
7  union {
8  /* 00 */ s64 s64;
13  } value;
14  /* 08 */ char *buff;
15  /* 0c */ s32 part1_len;
17  /* 14 */ s32 part2_len;
18  /* 18 */ s32 num_mid_zeros;
19  /* 1c */ s32 part3_len;
21  /* 24 */ s32 precision;
22  /* 28 */ s32 width;
23  /* 2c */ u32 size;
24  /* 30 */ u32 flags;
25  /* 34 */ u8 length;
27 
28 #define FLAGS_SPACE 1
29 #define FLAGS_PLUS 2
30 #define FLAGS_MINUS 4
31 #define FLAGS_HASH 8
32 #define FLAGS_ZERO 16
33 s32 _Printf(char *(*prout)(char *, const char *, size_t), char *dst, const char *fmt, va_list args);
36 #endif
double f64
Definition: ultratypes.h:30
char * va_list
Definition: stdarg.h:15
list args
Definition: first-diff.py:8
unsigned short int u16
Definition: ultratypes.h:14
Out of while attempting to print an unavailable message The error message file is inaccessible or has other problems Unknown Signal s An unknown signal has been caught Nested signals line but accepted as written The constant is too large to fit in a bit data type
Definition: err.english.cc:364
u64 u64
Definition: printf.h:9
s32 num_leading_zeros
Definition: printf.h:16
u32 u32
Definition: printf.h:11
u32 size
Definition: printf.h:23
unsigned long long int u64
Definition: ultratypes.h:18
s32 precision
Definition: printf.h:21
s32 num_mid_zeros
Definition: printf.h:18
void _Litob(printf_struct *args, u8 type)
Definition: _Litob.c:11
if both size specifiers are they shall have the same value(11) Incompatible array type due to incompatible element type For two array types to be compatible
u8 length
Definition: printf.h:25
s64 s64
Definition: printf.h:8
s32 part2_len
Definition: printf.h:17
u32 flags
Definition: printf.h:24
signed long long int s64
Definition: ultratypes.h:17
u16 u16
Definition: printf.h:12
s32 part3_len
Definition: printf.h:19
unsigned char u8
Definition: ultratypes.h:12
Definition: printf.h:5
s32 part1_len
Definition: printf.h:15
signed int s32
Definition: ultratypes.h:15
f64 f64
Definition: printf.h:10
void _Ldtob(printf_struct *args, u8 type)
Definition: _Ldtob.c:47
s32 num_trailing_zeros
Definition: printf.h:20
s32 _Printf(char *(*prout)(char *, const char *, size_t), char *dst, const char *fmt, va_list args)
Definition: _Printf.c:36
unsigned int u32
Definition: ultratypes.h:16
s32 width
Definition: printf.h:22
char * buff
Definition: printf.h:14