| 206 | } |
| 207 | |
| 208 | txString fxConcatString(txMachine* the, txSlot* a, txSlot* b) |
| 209 | { |
| 210 | txSize aSize = mxStringLength(a->value.string); |
| 211 | txSize bSize = mxStringLength(b->value.string); |
| 212 | txSize resultSize = fxAddChunkSizes(the, fxAddChunkSizes(the, aSize, bSize), 1); |
| 213 | txString result = (txString)fxNewChunk(the, resultSize); |
| 214 | c_memcpy(result, a->value.string, aSize); |
| 215 | c_memcpy(result + aSize, b->value.string, bSize + 1); |
| 216 | a->value.string = result; |
| 217 | a->kind = XS_STRING_KIND; |
| 218 | return result; |
| 219 | } |
| 220 | |
| 221 | txString fxConcatStringC(txMachine* the, txSlot* a, txString b) |
| 222 | { |
no test coverage detected