root/trunk/thune/list.h

Revision 458, 0.6 kB (checked in by krobillard, 15 months ago)

Merged Thune thread_safe branch into trunk (r386:457)

Line 
1#ifndef LIST_H
2#define LIST_H
3/* Internal definitions for list datatype */
4
5
6/* Cell index of head and tail in a list block */
7#define LIST_HEAD       0
8#define LIST_TAIL       1
9
10#define LIST_REMOVED_ERROR  "list node has been removed"
11
12#define ur_listNextNode(blk,it) \
13    it = blk->ptr.cells + it->list.next
14
15
16extern UIndex ur_makeList( UThread*, int len, UBlock** blkPtr );
17extern void ur_listInsertValue( UBlock*, UIndex nodeIndex, UCell* );
18extern UIndex ur_listRemove( UBlock* blk, UIndex nodeIndex );
19extern UIndex ur_listClear( UBlock*, UIndex nodeIndex );
20
21
22#endif  /*LIST_H*/
Note: See TracBrowser for help on using the browser.