MCPcopy Create free account
hub / github.com/creatale/node-dv / boxaaExtendArray

Function boxaaExtendArray

deps/leptonica/src/boxbasic.c:1378–1394  ·  view source on GitHub ↗

! * \brief boxaaExtendArray() * * \param[in] baa * \return 0 if OK, 1 on error */

Source from the content-addressed store, hash-verified

1376 * \return 0 if OK, 1 on error
1377 */
1378l_int32
1379boxaaExtendArray(BOXAA *baa)
1380{
1381
1382 PROCNAME("boxaaExtendArray");
1383
1384 if (!baa)
1385 return ERROR_INT("baa not defined", procName, 1);
1386
1387 if ((baa->boxa = (BOXA **)reallocNew((void **)&baa->boxa,
1388 sizeof(BOXA *) * baa->nalloc,
1389 2 * sizeof(BOXA *) * baa->nalloc)) == NULL)
1390 return ERROR_INT("new ptr array not returned", procName, 1);
1391
1392 baa->nalloc *= 2;
1393 return 0;
1394}
1395
1396
1397/*!

Callers 2

boxaaAddBoxaFunction · 0.85
boxaaInsertBoxaFunction · 0.85

Calls 1

reallocNewFunction · 0.85

Tested by

no test coverage detected