__PREFIX_BEGIN__
//-----------------------------------------------------------------------------
// Copyright © 2003 - Philip Howard - All rights reserved
//
// 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//-----------------------------------------------------------------------------
// package	libh/list
// homepage	http://libh.slashusr.org/
//-----------------------------------------------------------------------------
// author	Philip Howard
// email	libh at ipal dot org
// homepage	http://phil.ipal.org/
//-----------------------------------------------------------------------------
// This file is best viewed using a fixed spaced font such as Courier
// and in a display at least 120 columns wide.
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// file		list.h
//
// purpose	Define data and functions for the list package.
//-----------------------------------------------------------------------------
#ifndef __LIST_H__
#define __LIST_H__

__PREFIX_END__

__DEFINE_BEGIN__
//-----------------------------------------------------------------------------
// struct	list_link_s
// typedef	list_member, list_anchor, list_member_p, list_anchor_p
//
// purpose	Define structure and type definition for the links of a doubly
//		linked list stack/queue node and anchor, and pointers.
//
// usage	This struct must be the first member of an application struct
//		defined to hold data to be placed in the list/stack/queue.
//		The application can then do operations on the first member,
//		or define higher level versions of these functions that call
//		these functions, and work with those definitions directly.
//-----------------------------------------------------------------------------
struct list_link_s {
    struct list_link_s *	list_next		;
    struct list_link_s *	list_prev		;
};
typedef struct list_link_s	list_member		;
typedef struct list_link_s *	list_anchor		;
typedef struct list_link_s *	list_member_p		;
typedef struct list_link_s * *	list_anchor_p		;

__DEFINE_END__

__SUFFIX_BEGIN__
#endif /* __LIST_H__ */
__SUFFIX_END__

