Project

General

Profile

Feature #790 ยป 0016-specpq.h-Replace-NULLs-with-nullptrs.patch

Marko Lindqvist, 08/13/2024 06:13 AM

View differences:

utility/specpq.h
SPECPQ_PQ_ *pq = (SPECPQ_PQ_ *) _pq;
int i;
if (data_free != NULL) {
if (data_free != nullptr) {
for (i = 1; i < pq->size; i++) {
data_free(pq->cells[i].data);
}
......
/************************************************************************//**
Remove the highest-ranking item from the queue and store it in 'pdata'.
'pdata' may be NULL. Return FALSE iff no item could be removed, because
'pdata' may be nullptr. Return FALSE iff no item could be removed, because
the queue was empty.
****************************************************************************/
static inline bool SPECPQ_FOO(_pq_remove)(SPECPQ_PQ *_pq,
    (1-1/1)