Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs
prclist.h File Reference
#include "prtypes.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PRCListStr

Defines

#define PR_INSERT_BEFORE(_e, _l)
#define PR_INSERT_AFTER(_e, _l)
#define PR_NEXT_LINK(_e)   ((_e)->next)
#define PR_PREV_LINK(_e)   ((_e)->prev)
#define PR_APPEND_LINK(_e, _l)   PR_INSERT_BEFORE(_e,_l)
#define PR_INSERT_LINK(_e, _l)   PR_INSERT_AFTER(_e,_l)
#define PR_LIST_HEAD(_l)   (_l)->next
#define PR_LIST_TAIL(_l)   (_l)->prev
#define PR_REMOVE_LINK(_e)
#define PR_REMOVE_AND_INIT_LINK(_e)
#define PR_CLIST_IS_EMPTY(_l)   ((_l)->next == (_l))
#define PR_INIT_CLIST(_l)
#define PR_INIT_STATIC_CLIST(_l)   {(_l), (_l)}

Typedefs

typedef struct PRCListStr

Define Documentation

#define PR_APPEND_LINK (   _e,
  _l 
)    PR_INSERT_BEFORE(_e,_l)

Definition at line 89 of file prclist.h.

#define PR_CLIST_IS_EMPTY (   _l)    ((_l)->next == (_l))

Definition at line 125 of file prclist.h.

#define PR_INIT_CLIST (   _l)
Value:
PR_BEGIN_MACRO          \
       (_l)->next = (_l); \
       (_l)->prev = (_l); \
    PR_END_MACRO

Definition at line 131 of file prclist.h.

#define PR_INIT_STATIC_CLIST (   _l)    {(_l), (_l)}

Definition at line 137 of file prclist.h.

#define PR_INSERT_AFTER (   _e,
  _l 
)
Value:
PR_BEGIN_MACRO               \
       (_e)->next = (_l)->next; \
       (_e)->prev = (_l);    \
       (_l)->next->prev = (_e); \
       (_l)->next = (_e);    \
    PR_END_MACRO

Definition at line 67 of file prclist.h.

#define PR_INSERT_BEFORE (   _e,
  _l 
)
Value:
PR_BEGIN_MACRO               \
       (_e)->next = (_l);    \
       (_e)->prev = (_l)->prev; \
       (_l)->prev->next = (_e); \
       (_l)->prev = (_e);    \
    PR_END_MACRO

Definition at line 56 of file prclist.h.

#define PR_INSERT_LINK (   _e,
  _l 
)    PR_INSERT_AFTER(_e,_l)

Definition at line 94 of file prclist.h.

#define PR_LIST_HEAD (   _l)    (_l)->next

Definition at line 97 of file prclist.h.

#define PR_LIST_TAIL (   _l)    (_l)->prev

Definition at line 98 of file prclist.h.

#define PR_NEXT_LINK (   _e)    ((_e)->next)

Definition at line 78 of file prclist.h.

#define PR_PREV_LINK (   _e)    ((_e)->prev)

Definition at line 83 of file prclist.h.

Value:
PR_BEGIN_MACRO                     \
       (_e)->prev->next = (_e)->next; \
       (_e)->next->prev = (_e)->prev; \
       (_e)->next = (_e);          \
       (_e)->prev = (_e);          \
    PR_END_MACRO

Definition at line 113 of file prclist.h.

Value:
PR_BEGIN_MACRO                     \
       (_e)->prev->next = (_e)->next; \
       (_e)->next->prev = (_e)->prev; \
    PR_END_MACRO

Definition at line 103 of file prclist.h.


Typedef Documentation

typedef struct PRCListStr

Definition at line 43 of file prclist.h.