| 328 | |
| 329 | |
| 330 | USHORT MOV_make_string(Jrd::thread_db* tdbb, |
| 331 | const dsc* desc, |
| 332 | USHORT ttype, |
| 333 | const char** address, |
| 334 | vary* temp, |
| 335 | USHORT length) |
| 336 | { |
| 337 | /************************************** |
| 338 | * |
| 339 | * M O V _ m a k e _ s t r i n g |
| 340 | * |
| 341 | ************************************** |
| 342 | * |
| 343 | * Functional description |
| 344 | * Make a string, in a specified text type, out of a descriptor. |
| 345 | * The caller must provide a sufficiently |
| 346 | * large temporary. The address of the resultant string is returned |
| 347 | * by reference. |
| 348 | * MOV_make_string returns the length of the string in bytes. |
| 349 | * |
| 350 | * Note: If the descriptor is known to be a string type in the |
| 351 | * given ttype the argument (temp buffer) may be omitted. |
| 352 | * But this would be a bad idea in general. |
| 353 | * |
| 354 | **************************************/ |
| 355 | |
| 356 | return CVT_make_string(desc, ttype, address, temp, length, tdbb->getAttachment()->att_dec_status, ERR_post); |
| 357 | } |
| 358 | |
| 359 | |
| 360 | ULONG MOV_make_string2(Jrd::thread_db* tdbb, |
no test coverage detected