diff List.h @ 2:803d6bf22e6d default tip

second commit. it's far to complete..
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Dec 2009 16:19:56 +0900
parents 5b089096921f
children
line wrap: on
line diff
--- a/List.h	Sun Dec 20 20:46:53 2009 +0900
+++ b/List.h	Tue Dec 22 16:19:56 2009 +0900
@@ -7,11 +7,25 @@
 	struct _List *prev;
 } List;
 
+typedef struct _ListIter {
+	struct _List *head;
+	struct _List *next;
+} ListIter;
+
 List * _listAddFirst(List*, void *);
 List * _listRemove(List *, void *);
 void * _listGetnthData(List *, int);
+void * _listGetLastData(List *);
+List * _listMoveLasttoFirst(List *);
 
 typedef int (*ApplyFn)(void*,void*);
 void _listApply(List *, ApplyFn, void *);
 
+
+ListIter * _listIterator(List *);
+void * _listIterNext(ListIter *);
+void _listIterEnd(ListIter *);
+List * _listIterRemoveCurrent(ListIter *);
+
+
 #endif /* !_LIST_H */