Match and link printf.c

This commit is contained in:
Phillip Stephens 2025-05-21 09:15:56 -07:00
parent 164136f3b6
commit 276b48146d
4 changed files with 9 additions and 2 deletions

View File

@ -16054,7 +16054,7 @@ __StringWrite = .text:0x8038E080; // type:function size:0x6C scope:global
__FileWrite = .text:0x8038E0EC; // type:function size:0x58 scope:global
__pformatter = .text:0x8038E144; // type:function size:0x774 scope:local
float2str = .text:0x8038E8B8; // type:function size:0x6EC scope:local
fn_8038EFA4 = .text:0x8038EFA4; // type:function size:0x12C
round_decimal = .text:0x8038EFA4; // type:function size:0x12C
double2hex = .text:0x8038F0D0; // type:function size:0x338 scope:local
longlong2str = .text:0x8038F408; // type:function size:0x2DC scope:local
long2str = .text:0x8038F6E4; // type:function size:0x220 scope:local

View File

@ -1250,7 +1250,7 @@ config.libs = [
Object(MatchingFor("GM8E01_00", "GM8E01_01", "GM8E01_48"), "Runtime/mem.c"),
Object(MatchingFor("GM8E01_00", "GM8E01_01", "GM8E01_48"), "Runtime/mem_funcs.c"),
Object(MatchingFor("GM8E01_00", "GM8E01_01", "GM8E01_48"), "Runtime/misc_io.c"),
Object(NonMatching, "Runtime/printf.c"),
Object(MatchingFor("GM8E01_00", "GM8E01_01", "GM8E01_48"), "Runtime/printf.c"),
Object(MatchingFor("GM8E01_00", "GM8E01_01", "GM8E01_48"), "Runtime/qsort.c"),
Object(MatchingFor("GM8E01_00", "GM8E01_01", "GM8E01_48"), "Runtime/rand.c"),
Object(MatchingFor("GM8E01_00", "GM8E01_01", "GM8E01_48"), "Runtime/sscanf.c"),

View File

@ -23,6 +23,12 @@ int __flush_buffer(FILE* file, size_t* length);
void __prep_buffer(FILE* file);
int __flush_all();
extern FILE __files[4];
#define stdin &(__files[0])
#define stdout &(__files[1])
#define stderr &(__files[2])
#ifdef __cplusplus
};
#endif // ifdef __cplusplus

View File

@ -19,6 +19,7 @@ char* strncpy(char* dest, const char* src, size_t num);
int strcmp(const char* s1, const char* s2);
int strncmp(const char* s1, const char* s2, size_t n);
char* strncat(char* dest, const char* src, size_t n);
char* strchr(const char* str, int chr);
#ifdef __cplusplus
}