diff --git a/config/GM8E01_48/symbols.txt b/config/GM8E01_48/symbols.txt index 3ace7e6f..e533284f 100644 --- a/config/GM8E01_48/symbols.txt +++ b/config/GM8E01_48/symbols.txt @@ -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 diff --git a/configure.py b/configure.py index cf112634..f9042cdf 100755 --- a/configure.py +++ b/configure.py @@ -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"), diff --git a/libc/ansi_files.h b/libc/ansi_files.h index 60a39ece..aab7f1f2 100644 --- a/libc/ansi_files.h +++ b/libc/ansi_files.h @@ -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 diff --git a/libc/string.h b/libc/string.h index 59b88938..c79840f8 100644 --- a/libc/string.h +++ b/libc/string.h @@ -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 }