queue.c 1.63 KB
/**
 * \file queue.c
 * \author  Georg Steffers <georg@steffers.org>
 * \brief   Internal implementations for queue handling.
 *
 * This implements the internals for the typesafe queue based on
 * typesafe linked lists defines in list.h.
 * The only thing one has to remember when one only wants to
 * use queues within the own code is to link the code agains
 * an object of this and list.c. This is normally done by linking agains
 * libscot with an -lscot or similar compiler switch.
 * 
 * Copyright (C)2006    Georg Steffers <georg@steffers.org>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
#include <stdio.h>

#include <scot/queue.h>
#include <scot_common.h>

/**
 * \internal
 * \brief Error messages given.
 *
 * This holds all error messages that go either to the exception system
 * or will be printed on stderr if an error occurs within a queue function.
 * \attention This is not used actually.
 */
const char *queue_err_msg[] =
{
   N_("No more elements left in queue."),
   NULL
};