MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / copyStatus

Function copyStatus

src/common/utils.cpp:1350–1373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1348}
1349
1350unsigned 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
1375unsigned int mergeStatus(ISC_STATUS* const dest, unsigned int space,
1376 const Firebird::IStatus* from) throw()

Callers 15

aliceFunction · 0.85
ERRD_puntFunction · 0.85
dsqlPassMethod · 0.85
queryMethod · 0.85
startMethod · 0.85
initMethod · 0.85
copyToMethod · 0.85
copyToOriginalMethod · 0.85
mergeStatusFunction · 0.85
appendMethod · 0.85
copyToMethod · 0.85
copyToMethod · 0.85

Calls 7

nextArgFunction · 0.85
initMethod · 0.45
getStateMethod · 0.45
setErrorsMethod · 0.45
getErrorsMethod · 0.45
setWarningsMethod · 0.45
getWarningsMethod · 0.45

Tested by

no test coverage detected