1 /* This file is part of the yazpp toolkit.
2 * Copyright (C) 1998-2009 Index Data and Mike Taylor
3 * See the file LICENSE for details.
7 #include <yazpp/gduqueue.h>
9 using namespace yazpp_1;
20 for (l = m_list; l; l = l->m_next)
25 void GDUQueue::enqueue(GDU *gdu)
27 GDUQueue_List *l = new GDUQueue_List;
33 GDU *GDUQueue::dequeue()
35 GDUQueue_List **l = &m_list;
40 GDU *m = (*l)->m_item;
46 void GDUQueue::clear()
49 while ((g = dequeue()))
60 * indent-tabs-mode: nil
62 * vim: shiftwidth=4 tabstop=8 expandtab