MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxDTOACleanup

Function fxDTOACleanup

xs/sources/xsdtoa.c:6336–6360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6334static void fxDTOASetup(txMachine* the, ThInfo* DTOA);
6335
6336void fxDTOACleanup(txMachine* the, ThInfo* DTOA)
6337{
6338#if mxUseChunkHeap
6339 if (DTOA->dirty)
6340#endif
6341 {
6342 Bigint* b;
6343 int i, c = Kmax +1 ;
6344 for (i = 0; i < c; i++) {
6345 b = DTOA->Freelist[i];
6346 while(b) {
6347 Bigint* next = b->next;
6348 fxDTOAFree(b, DTOA);
6349 b = next;
6350 }
6351 }
6352
6353 b = DTOA->P5s;
6354 while(b) {
6355 Bigint* next = b->next;
6356 fxDTOAFree(b, DTOA);
6357 b = next;
6358 }
6359 }
6360}
6361
6362static void* fxDTOAMalloc(size_t size, void* it)
6363{

Callers 2

fxNumberToStringFunction · 0.85
fxStringToNumberFunction · 0.85

Calls 1

fxDTOAFreeFunction · 0.85

Tested by

no test coverage detected