/**
* cache of unused, pdeq blocks to speed up new_pdeq and del_pdeq.
- * +1 for compilers that can't grok empty arrays
*/
-static pdeq *pdeq_block_cache[TUNE_NSAVED_PDEQS+1];
+static pdeq *pdeq_block_cache[TUNE_NSAVED_PDEQS];
/**
* Number of pdeqs in pdeq_store.
static inline pdeq *alloc_pdeq_block (void)
{
pdeq *p;
- if (TUNE_NSAVED_PDEQS && pdeqs_cached) {
+ if (pdeqs_cached > 0) {
p = pdeq_block_cache[--pdeqs_cached];
} else {
p = (pdeq*) xmalloc(PREF_MALLOC_SIZE);
qq = q->r;
free_pdeq_block(q);
} while ((q = qq));
-
}
/* Checks if a list is empty. */