| 496 | } |
| 497 | |
| 498 | void fxIDToString(txMachine* the, txID id, txString theBuffer, txSize theSize) |
| 499 | { |
| 500 | if (id != XS_NO_ID) { |
| 501 | txBoolean adorn; |
| 502 | txString string = fxGetKeyString(the, id, &adorn); |
| 503 | if (adorn) |
| 504 | c_snprintf(theBuffer, theSize, "[%s]", string); |
| 505 | else |
| 506 | c_snprintf(theBuffer, theSize, "%s", string); |
| 507 | } |
| 508 | else { |
| 509 | theBuffer[0] = '?'; |
| 510 | theBuffer[1] = 0; |
| 511 | } |
| 512 | } |
no test coverage detected