call fmtlocaleinit
This commit is contained in:
parent
8b0728d3b5
commit
d6316a2de0
1 changed files with 2 additions and 4 deletions
|
|
@ -5,13 +5,11 @@
|
||||||
void
|
void
|
||||||
fmtzbinit(Fmt *f, ZBlock *b)
|
fmtzbinit(Fmt *f, ZBlock *b)
|
||||||
{
|
{
|
||||||
f->runes = 0;
|
memset(f, 0, sizeof *f);
|
||||||
|
fmtlocaleinit(f);
|
||||||
f->start = b->data;
|
f->start = b->data;
|
||||||
f->to = f->start;
|
f->to = f->start;
|
||||||
f->stop = (char*)f->start + b->len;
|
f->stop = (char*)f->start + b->len;
|
||||||
f->flush = nil;
|
|
||||||
f->farg = nil;
|
|
||||||
f->nfmt = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ROUNDUP(p, n) ((void*)(((uintptr)(p)+(n)-1)&~(uintptr)((n)-1)))
|
#define ROUNDUP(p, n) ((void*)(((uintptr)(p)+(n)-1)&~(uintptr)((n)-1)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue