Lines Matching refs:infop
953 struct nsprintf *infop=(struct nsprintf *)data; in addbyter() local
956 if(infop->length < infop->max) { in addbyter()
958 infop->buffer[0] = outc; /* store */ in addbyter()
959 infop->buffer++; /* increase pointer */ in addbyter()
960 infop->length++; /* we are now one byte larger */ in addbyter()
1001 struct asprintf *infop=(struct asprintf *)data; in alloc_addbyter() local
1004 if(!infop->buffer) { in alloc_addbyter()
1005 infop->buffer = malloc(32); in alloc_addbyter()
1006 if(!infop->buffer) { in alloc_addbyter()
1007 infop->fail = 1; in alloc_addbyter()
1010 infop->alloc = 32; in alloc_addbyter()
1011 infop->len =0; in alloc_addbyter()
1013 else if(infop->len+1 >= infop->alloc) { in alloc_addbyter()
1016 newptr = realloc(infop->buffer, infop->alloc*2); in alloc_addbyter()
1019 infop->fail = 1; in alloc_addbyter()
1022 infop->buffer = newptr; in alloc_addbyter()
1023 infop->alloc *= 2; in alloc_addbyter()
1026 infop->buffer[ infop->len ] = outc; in alloc_addbyter()
1028 infop->len++; in alloc_addbyter()