/* * call-seq: * pq.size -> integer * * Returns the size of the queue, ie. the number of elements currently stored * in the queue. The _size_ of a PriorityQueue can never be greater than * its _capacity_ */ static VALUE frt_pq_size(VALUE self) { PriQ *pq; GET_PQ(pq, self); return INT2FIX(pq->size); }