/* * call-seq: * pq.clear -> self * * Clears all elements from the priority queue. The size will be reset to 0. */ static VALUE frt_pq_clear(VALUE self) { PriQ *pq; GET_PQ(pq, self); pq->size = 0; return self; }