[Olsr-cvs] olsrd-current/src defs.h,1.60,1.61

Bernd Petrovitsch (spam-protected)
Thu Aug 2 23:45:35 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29799/src

Modified Files:
	defs.h 
Log Message:
* boilerplate parentheses in macros

Index: defs.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/defs.h,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** defs.h	2 May 2007 08:06:28 -0000	1.60
--- defs.h	2 Aug 2007 21:45:33 -0000	1.61
***************
*** 108,120 ****
  
  #define QUEUE_ELEM(pre, new) do { \
!     pre.next->prev = new;         \
!     new->next = pre.next;         \
!     new->prev = ⪯             \
!     pre.next = new;               \
    } while (0)
  
  #define DEQUEUE_ELEM(elem) do { \
!     elem->prev->next = elem->next;     \
!     elem->next->prev = elem->prev;     \
    } while (0)
  
--- 108,120 ----
  
  #define QUEUE_ELEM(pre, new) do { \
!     (pre).next->prev = (new);         \
!     (new)->next = (pre).next;         \
!     (new)->prev = &(pre);             \
!     (pre).next = (new);               \
    } while (0)
  
  #define DEQUEUE_ELEM(elem) do { \
!     (elem)->prev->next = (elem)->next;     \
!     (elem)->next->prev = (elem)->prev;     \
    } while (0)
  





More information about the Olsr-cvs mailing list