| 695 | */ |
| 696 | |
| 697 | static void Bfree(Bigint *v, Stack_alloc *alloc) |
| 698 | { |
| 699 | char *gptr= (char*) v; /* generic pointer */ |
| 700 | if (gptr < alloc->begin || gptr >= alloc->end) |
| 701 | free(gptr); |
| 702 | else if (v->k <= Kmax) |
| 703 | { |
| 704 | /* |
| 705 | Maintain free lists only for stack objects: this way we don't |
| 706 | have to bother with freeing lists in the end of dtoa; |
| 707 | heap should not be used normally anyway. |
| 708 | */ |
| 709 | v->p.next= alloc->freelist[v->k]; |
| 710 | alloc->freelist[v->k]= v; |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | |
| 715 | /* |
no outgoing calls
no test coverage detected