Match Libultra (#120)
* Matched perspective, contquery, contreaddata, recvmesg and sendmesg
* Fixed libultra compilation flags
* Matched viblack
* Matched virepeatline, visetmode, visetspecial and viswapbuf
* Matched cartrominit, dpsetstat, sptask, sptaskyield, visetevent, createthread, gettime, setthreadpri, settime, settimer and starthread
* Fixed bss bs
* Matched even more libultra stuff
* Matched even more
* __osRdbSend
* Decompiled most of the functions of libultra <3
* Matched last functions
* Added a separation to libultra macros
* Removed ARRLEN from controller.h
* Fix libultra warnings
---------
Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
2024-02-14 18:24:31 +03:00
|
|
|
#ifndef _XSTDIO_H
|
|
|
|
#define _XSTDIO_H
|
|
|
|
#include "PR/ultratypes.h"
|
|
|
|
#include "libc/stdlib.h"
|
2023-10-23 23:02:01 +03:00
|
|
|
#include "libc/stdarg.h"
|
2023-10-18 15:07:13 +03:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* 0x0 */ union {
|
Match Libultra (#120)
* Matched perspective, contquery, contreaddata, recvmesg and sendmesg
* Fixed libultra compilation flags
* Matched viblack
* Matched virepeatline, visetmode, visetspecial and viswapbuf
* Matched cartrominit, dpsetstat, sptask, sptaskyield, visetevent, createthread, gettime, setthreadpri, settime, settimer and starthread
* Fixed bss bs
* Matched even more libultra stuff
* Matched even more
* __osRdbSend
* Decompiled most of the functions of libultra <3
* Matched last functions
* Added a separation to libultra macros
* Removed ARRLEN from controller.h
* Fix libultra warnings
---------
Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
2024-02-14 18:24:31 +03:00
|
|
|
/* 0x0 */ long long ll;
|
|
|
|
/* 0x0 */ double ld;
|
2023-10-18 15:07:13 +03:00
|
|
|
} v;
|
Match Libultra (#120)
* Matched perspective, contquery, contreaddata, recvmesg and sendmesg
* Fixed libultra compilation flags
* Matched viblack
* Matched virepeatline, visetmode, visetspecial and viswapbuf
* Matched cartrominit, dpsetstat, sptask, sptaskyield, visetevent, createthread, gettime, setthreadpri, settime, settimer and starthread
* Fixed bss bs
* Matched even more libultra stuff
* Matched even more
* __osRdbSend
* Decompiled most of the functions of libultra <3
* Matched last functions
* Added a separation to libultra macros
* Removed ARRLEN from controller.h
* Fix libultra warnings
---------
Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
2024-02-14 18:24:31 +03:00
|
|
|
/* 0x8 */ unsigned char* s;
|
|
|
|
/* 0xC */ int n0;
|
|
|
|
/* 0x10 */ int nz0;
|
|
|
|
/* 0x14 */ int n1;
|
|
|
|
/* 0x18 */ int nz1;
|
|
|
|
/* 0x1C */ int n2;
|
|
|
|
/* 0x20 */ int nz2;
|
|
|
|
/* 0x24 */ int prec;
|
|
|
|
/* 0x28 */ int width;
|
2023-10-18 15:07:13 +03:00
|
|
|
/* 0x2C */ size_t nchar;
|
Match Libultra (#120)
* Matched perspective, contquery, contreaddata, recvmesg and sendmesg
* Fixed libultra compilation flags
* Matched viblack
* Matched virepeatline, visetmode, visetspecial and viswapbuf
* Matched cartrominit, dpsetstat, sptask, sptaskyield, visetevent, createthread, gettime, setthreadpri, settime, settimer and starthread
* Fixed bss bs
* Matched even more libultra stuff
* Matched even more
* __osRdbSend
* Decompiled most of the functions of libultra <3
* Matched last functions
* Added a separation to libultra macros
* Removed ARRLEN from controller.h
* Fix libultra warnings
---------
Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
2024-02-14 18:24:31 +03:00
|
|
|
/* 0x30 */ unsigned int flags;
|
|
|
|
/* 0x34 */ char qual;
|
2023-10-18 15:07:13 +03:00
|
|
|
} _Pft;
|
|
|
|
|
|
|
|
#define FLAGS_SPACE 1
|
|
|
|
#define FLAGS_PLUS 2
|
|
|
|
#define FLAGS_MINUS 4
|
|
|
|
#define FLAGS_HASH 8
|
|
|
|
#define FLAGS_ZERO 16
|
Match Libultra (#120)
* Matched perspective, contquery, contreaddata, recvmesg and sendmesg
* Fixed libultra compilation flags
* Matched viblack
* Matched virepeatline, visetmode, visetspecial and viswapbuf
* Matched cartrominit, dpsetstat, sptask, sptaskyield, visetevent, createthread, gettime, setthreadpri, settime, settimer and starthread
* Fixed bss bs
* Matched even more libultra stuff
* Matched even more
* __osRdbSend
* Decompiled most of the functions of libultra <3
* Matched last functions
* Added a separation to libultra macros
* Removed ARRLEN from controller.h
* Fix libultra warnings
---------
Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
2024-02-14 18:24:31 +03:00
|
|
|
typedef char *outfun(char*,const char*,size_t);
|
2023-10-18 15:07:13 +03:00
|
|
|
|
Match Libultra (#120)
* Matched perspective, contquery, contreaddata, recvmesg and sendmesg
* Fixed libultra compilation flags
* Matched viblack
* Matched virepeatline, visetmode, visetspecial and viswapbuf
* Matched cartrominit, dpsetstat, sptask, sptaskyield, visetevent, createthread, gettime, setthreadpri, settime, settimer and starthread
* Fixed bss bs
* Matched even more libultra stuff
* Matched even more
* __osRdbSend
* Decompiled most of the functions of libultra <3
* Matched last functions
* Added a separation to libultra macros
* Removed ARRLEN from controller.h
* Fix libultra warnings
---------
Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
2024-02-14 18:24:31 +03:00
|
|
|
int _Printf(outfun prout, char *arg, const char *fmt, va_list args);
|
|
|
|
void _Litob(_Pft *args, char type);
|
|
|
|
void _Ldtob(_Pft* px, char code);
|
2023-10-18 15:07:13 +03:00
|
|
|
|
|
|
|
#endif
|