Changeset 14:14cf6daf716d in freeDiameter for include/freeDiameter/libfreeDiameter.h
- Timestamp:
- Oct 1, 2009, 6:24:07 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfreeDiameter.h
r13 r14 193 193 #ifndef ERRORS_ON_TODO 194 194 #define TODO( _msg, _args... ) \ 195 TRACE_DEBUG(NONE, _msg , ##_args);195 TRACE_DEBUG(NONE, "TODO: " _msg , ##_args); 196 196 #else /* ERRORS_ON_TODO */ 197 197 #define TODO( _msg, _args... ) \ … … 446 446 }; 447 447 448 #define FD_LIST( _li ) ((struct fd_list *)( _li ))449 450 448 /* Initialize a list element */ 449 #define FD_LIST_INITIALIZER( _list_name ) \ 450 { .next = & _list_name, .prev = & _list_name, .head = & _list_name, .o = NULL } 451 #define FD_LIST_INITIALIZER_O( _list_name, _obj ) \ 452 { .next = & _list_name, .prev = & _list_name, .head = & _list_name, .o = _obj } 451 453 void fd_list_init ( struct fd_list * list, void *obj ); 452 454 453 455 /* Return boolean, true if the list is empty */ 454 #define FD_IS_LIST_EMPTY( _list ) ((( FD_LIST(_list))->head == (_list)) && ((FD_LIST(_list))->next == (_list)))456 #define FD_IS_LIST_EMPTY( _list ) ((((struct fd_list *)(_list))->head == (_list)) && (((struct fd_list *)(_list))->next == (_list))) 455 457 456 458 /* Insert an item in a list at known position */
Note: See TracChangeset
for help on using the changeset viewer.