Back to index

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

Go to the source code of this file.

Classes

struct  JSCListStr

Defines

#define JS_INSERT_BEFORE(_e, _l)
#define JS_INSERT_AFTER(_e, _l)
#define JS_NEXT_LINK(_e)   ((_e)->next)
#define JS_PREV_LINK(_e)   ((_e)->prev)
#define JS_APPEND_LINK(_e, _l)   JS_INSERT_BEFORE(_e,_l)
#define JS_INSERT_LINK(_e, _l)   JS_INSERT_AFTER(_e,_l)
#define JS_LIST_HEAD(_l)   (_l)->next
#define JS_LIST_TAIL(_l)   (_l)->prev
#define JS_REMOVE_LINK(_e)
#define JS_REMOVE_AND_INIT_LINK(_e)
#define JS_CLIST_IS_EMPTY(_l)   ((_l)->next == (_l))
#define JS_INIT_CLIST(_l)
#define JS_INIT_STATIC_CLIST(_l)   {(_l), (_l)}

Typedefs

typedef struct JSCListStr JSCList

Define Documentation

#define JS_APPEND_LINK (   _e,
  _l 
)    JS_INSERT_BEFORE(_e,_l)

Definition at line 88 of file jsclist.h.

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

Definition at line 124 of file jsclist.h.

#define JS_INIT_CLIST (   _l)
Value:
JS_BEGIN_MACRO         \
        (_l)->next = (_l); \
        (_l)->prev = (_l); \
    JS_END_MACRO

Definition at line 130 of file jsclist.h.

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

Definition at line 136 of file jsclist.h.

#define JS_INSERT_AFTER (   _e,
  _l 
)
Value:
JS_BEGIN_MACRO               \
        (_e)->next = (_l)->next; \
        (_e)->prev = (_l);       \
        (_l)->next->prev = (_e); \
        (_l)->next = (_e);       \
    JS_END_MACRO

Definition at line 66 of file jsclist.h.

#define JS_INSERT_BEFORE (   _e,
  _l 
)
Value:
JS_BEGIN_MACRO               \
        (_e)->next = (_l);       \
        (_e)->prev = (_l)->prev; \
        (_l)->prev->next = (_e); \
        (_l)->prev = (_e);       \
    JS_END_MACRO

Definition at line 55 of file jsclist.h.

#define JS_INSERT_LINK (   _e,
  _l 
)    JS_INSERT_AFTER(_e,_l)

Definition at line 93 of file jsclist.h.

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

Definition at line 96 of file jsclist.h.

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

Definition at line 97 of file jsclist.h.

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

Definition at line 77 of file jsclist.h.

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

Definition at line 82 of file jsclist.h.

Value:
JS_BEGIN_MACRO                     \
        (_e)->prev->next = (_e)->next; \
        (_e)->next->prev = (_e)->prev; \
        (_e)->next = (_e);             \
        (_e)->prev = (_e);             \
    JS_END_MACRO

Definition at line 112 of file jsclist.h.

Value:
JS_BEGIN_MACRO                     \
        (_e)->prev->next = (_e)->next; \
        (_e)->next->prev = (_e)->prev; \
    JS_END_MACRO

Definition at line 102 of file jsclist.h.


Typedef Documentation

typedef struct JSCListStr JSCList