Changeset 1580


Ignore:
Timestamp:
Mar 23, 2007, 8:41:15 AM (15 years ago)
Author:
joshe
Message:

A couple trivial improvements to tree.h
Import queue.h from openbsd.

Location:
trunk/libtransmission
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bsdtree.h

    r1579 r1580  
    3131
    3232#ifndef __unused
     33#ifdef __GNUC__
     34#define __unused __attribute__((__unused__))
     35#else
    3336#define __unused
     37#endif
    3438#endif
    3539
     
    316320        int rbe_color;                  /* node color */                \
    317321}
     322
     323#define RB_ENTRY_INITIALIZER()                                          \
     324        { NULL, NULL, NULL, 0 }
    318325
    319326#define RB_LEFT(elm, field)             (elm)->field.rbe_left
Note: See TracChangeset for help on using the changeset viewer.