| 1655 | } |
| 1656 | |
| 1657 | void* fxNewChunk(txMachine* the, txSize size) |
| 1658 | { |
| 1659 | txSize offset = size; |
| 1660 | txChunk* chunk; |
| 1661 | txBoolean once = 1; |
| 1662 | size = fxAdjustChunkSize(the, size); |
| 1663 | chunk = fxFindChunk(the, size, &once); |
| 1664 | if (!chunk) { |
| 1665 | chunk = fxGrowChunk(the, size); |
| 1666 | } |
| 1667 | #ifdef mxMetering |
| 1668 | the->meterIndex += size * XS_CHUNK_ALLOCATION_METERING; |
| 1669 | #endif |
| 1670 | return fxCheckChunk(the, chunk, size, offset); |
| 1671 | } |
| 1672 | |
| 1673 | void* fxNewGrowableChunk(txMachine* the, txSize size, txSize capacity) |
| 1674 | { |
no test coverage detected