> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 10:53:27 up 1:32, 1 user, load average: 0.48, 0.28, 0.16
This commit is contained in:
@ -74,7 +74,7 @@ static int fmt_s(char* out, size_t n, const char* fmt, va_list ap) {
|
||||
return len;
|
||||
}
|
||||
|
||||
__attribute((noinline))
|
||||
__attribute__((noinline))
|
||||
static int fmt_match(char* out, size_t n, const char* fmt, va_list ap) {
|
||||
int res;
|
||||
assert(*(fmt - 1) == '%');
|
||||
@ -97,7 +97,7 @@ static int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
|
||||
size_t _n = n;
|
||||
const char* _fmt = fmt;
|
||||
bool end = false;
|
||||
for (; n && !end; _fmt ++, _out ++, _n --) {
|
||||
while (n && !end) {
|
||||
switch (*_fmt) {
|
||||
case '\0':
|
||||
*_out = *_fmt;
|
||||
|
Reference in New Issue
Block a user