Home | History | Annotate | Download | only in lib

Lines Matching defs:spc

321     POOL_PRINT      *spc;
323 spc = Context;
330 if (spc->len + len > spc->maxlen) {
331 len = spc->maxlen - spc->len;
338 CopyMem (spc->str + spc->len, Buffer, len * sizeof(CHAR16));
339 spc->len += len;
345 if (spc->len < spc->maxlen) {
346 spc->str[spc->len] = 0;
347 } else if (spc->maxlen) {
348 spc->str[spc->maxlen-1] = 0;
363 POOL_PRINT *spc;
365 spc = Context;
366 newlen = spc->len + StrLen(Buffer) + 1;
372 if (newlen > spc->maxlen) {
379 spc->maxlen = newlen;
380 spc->str = ReallocatePool (
381 spc->str,
382 spc->len * sizeof(CHAR16),
383 spc->maxlen * sizeof(CHAR16)
386 if (!spc->str) {
387 spc->len = 0;
388 spc->maxlen = 0;
405 IN OUT POOL_PRINT *spc,
414 ps.Context = spc;
454 POOL_PRINT spc;
456 spc.str = Str;
457 spc.maxlen = StrSize / sizeof(CHAR16) - 1;
458 spc.len = 0;
460 _PoolCatPrint (fmt, args, &spc, _SPrint);
462 return spc.len;
528 POOL_PRINT spc;
531 ZeroMem (&spc, sizeof(spc));
533 _PoolCatPrint (fmt, args, &spc, _PoolPrint);
535 return spc.str;