Changeset 6224
- Timestamp:
- Jun 19, 2008, 2:53:57 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/bencode.c
r6146 r6224 39 39 #include "utils.h" /* tr_new(), tr_free() */ 40 40 41 const tr_benc BENC_NULL = { 0, { 0 } };42 43 41 /** 44 42 *** … … 61 59 return isContainer(val) || tr_bencIsInt(val) || tr_bencIsString(val); 62 60 } 61 62 static void 63 tr_bencInit( tr_benc * val, int type ) 64 { 65 memset( val, 0, sizeof( *val ) ); 66 val->type = type; 67 } 68 63 69 64 70 /*** -
trunk/libtransmission/bencode.h
r6162 r6224 80 80 /* convenience functions for building tr_benc structures */ 81 81 82 static inline void tr_bencInit( tr_benc * val, int type )83 {84 memset( val, 0, sizeof( *val ) );85 val->type = type;86 }87 88 82 #define tr_bencInitStr( a, b, c, d ) \ 89 83 _tr_bencInitStr( (a), ( char * )(b), (c), (d) )
Note: See TracChangeset
for help on using the changeset viewer.