Ignore:
Timestamp:
Jun 30, 2009, 4:40:34 PM (12 years ago)
Author:
charles
Message:

(trunk libT) inline some one-liners

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/list.h

    r7658 r8762  
    1717#ifndef TR_LIST_H
    1818#define TR_LIST_H
     19
     20#include "transmission.h" /* TR_INLINE */
    1921
    2022typedef struct tr_list
     
    8183 * Init @head as an empty list.
    8284 */
    83 void
    84 __tr_list_init( struct __tr_list * head );
     85static TR_INLINE void
     86__tr_list_init( struct __tr_list * head )
     87{
     88    head->next = head->prev = head;
     89}
    8590
    8691
     
    110115 * Append @list to the end of @head.
    111116 */
    112 void
     117static TR_INLINE void
    113118__tr_list_append( struct __tr_list * head,
    114                   struct __tr_list * list);
     119                  struct __tr_list * list)
     120{
     121    __tr_list_insert( list, head->prev, head );
     122}
     123
    115124
    116125/**
Note: See TracChangeset for help on using the changeset viewer.