Lines Matching refs:keys
61 pq->keys = (PQHeapKey *)memAlloc( INIT_SIZE * sizeof(pq->keys[0]) );
62 if (pq->keys == NULL) {
82 if (pq->keys != NULL) memFree( pq->keys );
98 /* Create an array of indirect pointers to the keys, so that we
115 for( piv = pq->keys, i = p; i <= r; ++piv, ++i ) {
183 PQkey *saveKey= pq->keys;
187 pq->keys = (PQHeapKey *)memRealloc( pq->keys,
189 (pq->max * sizeof( pq->keys[0] )));
190 if (pq->keys == NULL) {
191 pq->keys = saveKey; /* restore ptr to free upon return */
196 pq->keys[curr] = keyNew;
255 assert( curr < pq->max && pq->keys[curr] != NULL );
257 pq->keys[curr] = NULL;