void enqueue_adv(queue *q, queue_item x)