#%*&*@#(@ sun
This commit is contained in:
@@ -61,7 +61,7 @@ static Convfmt knownfmt[] = {
|
||||
'u', __ifmt,
|
||||
#endif
|
||||
'x', __ifmt,
|
||||
0, nil,
|
||||
0, 0,
|
||||
};
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ fmtfmt(int c)
|
||||
ep = &fmtalloc.fmt[fmtalloc.nfmt];
|
||||
for(p=fmtalloc.fmt; p<ep; p++)
|
||||
if(p->c == c){
|
||||
while(p->fmt == nil) /* loop until value is updated */
|
||||
while(p->fmt == 0) /* loop until value is updated */
|
||||
;
|
||||
return p->fmt;
|
||||
}
|
||||
|
@@ -51,7 +51,7 @@ __quotesetup(char *s, Rune *r, int nin, int nout, Quoteinfo *q, int sharp, int r
|
||||
break;
|
||||
}
|
||||
|
||||
if((c <= L' ') || (c == L'\'') || (fmtdoquote!=nil && fmtdoquote(c))){
|
||||
if((c <= L' ') || (c == L'\'') || (fmtdoquote!=0 && fmtdoquote(c))){
|
||||
if(!q->quoted){
|
||||
if(runesout){
|
||||
if(1+q->nrunesout+1+1 > nout) /* no room for quotes */
|
||||
|
@@ -13,7 +13,7 @@ runevseprint(Rune *buf, Rune *e, char *fmt, va_list args)
|
||||
f.start = buf;
|
||||
f.to = buf;
|
||||
f.stop = e - 1;
|
||||
f.flush = nil;
|
||||
f.flush = 0;
|
||||
f.farg = nil;
|
||||
f.nfmt = 0;
|
||||
VA_COPY(f.args,args);
|
||||
|
@@ -13,7 +13,7 @@ runevsnprint(Rune *buf, int len, char *fmt, va_list args)
|
||||
f.start = buf;
|
||||
f.to = buf;
|
||||
f.stop = buf + len - 1;
|
||||
f.flush = nil;
|
||||
f.flush = 0;
|
||||
f.farg = nil;
|
||||
f.nfmt = 0;
|
||||
VA_COPY(f.args,args);
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#define VLONG_MAX ~(((vlong) 1)<<63)
|
||||
#define VLONG_MIN (((vlong) 1)<<63)
|
||||
#define VLONG_MAX ((vlong)~(((uvlong)1)<<63))
|
||||
#define VLONG_MIN ((vlong)(((uvlong)1)<<63))
|
||||
vlong
|
||||
strtoll(const char *nptr, char **endptr, int base)
|
||||
{
|
||||
|
Reference in New Issue
Block a user