ring_empty
bool ring_empty;
ring_empty = false;
ring_empty = true;
return ring_empty;
while (!ring_empty(ring)) {
if (ring_empty(ring))