• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

spl/collection/clist.h

00001 #error "Plain Old C no longer supported"
00002 
00003 
00004 //#ifndef _list_h
00005 //#define _list_h
00006 //
00007 //#ifdef _WIN32
00008 //#include <spl/configwin32.h>
00009 //#endif
00010 //
00011 //#ifdef __cplusplus
00012 //extern "C" {
00013 //#endif
00014 //
00015 //struct listnode
00016 //{
00017 //      struct listnode *next;
00018 //      struct listnode *prev;
00019 //      void *data;
00020 //};
00021 //
00022 //typedef struct _list
00023 //{
00024 //      struct listnode head;
00025 //      struct listnode tail;
00026 //      struct listnode *current;
00027 //      int count;
00028 //} list;
00029 //
00030 //list *listConstruct( void );
00031 //void listDestruct( list *l );
00032 //int listIsEmpty( const list *l );
00033 //void listClear( list *l );
00034 //int listAdd( list *l, void *data );
00035 //void listBeginIter( list *l );
00036 //void listBeginIterMT( list *l, struct listnode **current );
00037 //void *listNext( list *l );
00038 //void *listNextMT( list *l, struct listnode **current );
00039 //void *listItem( list *l, const int index );
00040 //void listRemoveCurrent( list *l );
00041 //void listRemove( list *l, void *data );
00042 //int listCount( list *l );
00043 //
00044 //#if defined( DEBUG ) || defined( _DEBUG )
00045 //void listValidateMem( const list *l );
00046 //void listValidateContentMem( const list *l );
00047 //void listCheckMem( const list *l );
00048 //void listCheckContentMem( const list *l );
00049 //#else
00050 //#define listValidateMem( a );
00051 //#define listValidateContentMem( a );
00052 //#define listCheckMem( a );
00053 //#define listCheckContentMem( a );
00054 //#endif
00055 //
00056 //#ifdef __cplusplus
00057 //}
00058 //#endif
00059 //
00060 //#endif
00061 //