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

Function lstackRemove

deps/leptonica/src/stack.c:196–213  ·  view source on GitHub ↗

! * \brief lstackRemove() * * \param[in] lstack * \return ptr to item popped from the top of the lstack, * or NULL if the lstack is empty or on error */

Source from the content-addressed store, hash-verified

194 * or NULL if the lstack is empty or on error
195 */
196void *
197lstackRemove(L_STACK *lstack)
198{
199void *item;
200
201 PROCNAME("lstackRemove");
202
203 if (!lstack)
204 return ERROR_PTR("lstack not defined", procName, NULL);
205
206 if (lstack->n == 0)
207 return NULL;
208
209 lstack->n--;
210 item = lstack->array[lstack->n];
211
212 return item;
213}
214
215
216/*!

Callers 6

pushFillsegBBFunction · 0.85
pushFillsegFunction · 0.85
popFillsegFunction · 0.85
lstackDestroyFunction · 0.85
pushNewPixelFunction · 0.85
pushWSPixelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected