| 61 | static txStringInfo* fxCacheStringInfo(txMachine* the, txString string); |
| 62 | |
| 63 | void fxAllocateStringInfoCache(txMachine* the) |
| 64 | { |
| 65 | txStringInfoCache* cache = c_malloc(sizeof(txStringInfoCache) + ((mxStringInfoCacheLength - 1) * sizeof(txStringInfo))); |
| 66 | if (cache == C_NULL) |
| 67 | fxAbort(the, XS_NOT_ENOUGH_MEMORY_EXIT); |
| 68 | cache->count = mxStringInfoCacheLength; |
| 69 | cache->head = 0; |
| 70 | cache->tail = 0; |
| 71 | the->stringInfoCache = cache; |
| 72 | } |
| 73 | |
| 74 | void fxFreeStringInfoCache(txMachine* the) |
| 75 | { |