cgen: revert `new`

pull/4678/head
Alexander Medvednikov 2020-05-02 00:59:06 +02:00
parent 7dc98120c0
commit 7a51d4d796
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ const (
'void',
'volatile',
'while',
'new'
//'new'
]
)
@ -2225,7 +2225,7 @@ string _STR(const char *fmt, int nfmts, ...) {
string s = va_arg(argptr, string);
if (fmt[k-4] == '+"'*'"+') { // %*.*s
int fwidth = va_arg(argptr, int);
if (fwidth < 0)
if (fwidth < 0)
fwidth -= (s.len - utf8_str_len(s));
else
fwidth += (s.len - utf8_str_len(s));
@ -2235,7 +2235,7 @@ string _STR(const char *fmt, int nfmts, ...) {
}
} else {
v_panic(tos3("Invaid format specifier"));
}
}
} else {
if (k)
_STR_PRINT_ARG(fmt, &buf, &nbytes, &memsize, k);