| 1348 | } |
| 1349 | |
| 1350 | unsigned int copyStatus(ISC_STATUS* const to, const unsigned int space, |
| 1351 | const ISC_STATUS* const from, const unsigned int count) throw() |
| 1352 | { |
| 1353 | unsigned int copied = 0; |
| 1354 | |
| 1355 | for (unsigned int i = 0; i < count; ) |
| 1356 | { |
| 1357 | if (from[i] == isc_arg_end) |
| 1358 | { |
| 1359 | break; |
| 1360 | } |
| 1361 | i += nextArg(from[i]); |
| 1362 | if (i > space - 1) |
| 1363 | { |
| 1364 | break; |
| 1365 | } |
| 1366 | copied = i; |
| 1367 | } |
| 1368 | |
| 1369 | memcpy(to, from, copied * sizeof(to[0])); |
| 1370 | to[copied] = isc_arg_end; |
| 1371 | |
| 1372 | return copied; |
| 1373 | } |
| 1374 | |
| 1375 | unsigned int mergeStatus(ISC_STATUS* const dest, unsigned int space, |
| 1376 | const Firebird::IStatus* from) throw() |
no test coverage detected