ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.h
(Generate patch)

Comparing libecb/ecb.h (file contents):
Revision 1.27 by sf-exg, Thu May 26 21:36:49 2011 UTC vs.
Revision 1.28 by root, Thu May 26 23:23:08 2011 UTC

179ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) ecb_const; 179ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) ecb_const;
180ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) { return ecb_byteorder_helper () == 0x11; }; 180ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) { return ecb_byteorder_helper () == 0x11; };
181ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) ecb_const; 181ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) ecb_const;
182ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) { return ecb_byteorder_helper () == 0x44; }; 182ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) { return ecb_byteorder_helper () == 0x44; };
183 183
184#define ecb_mod(m, n) ((m) < 0 ? ((n) - (-(m) % (n))) : ((m) % (n))) 184#define ecb_mod(m,n) ((m) < 0 ? ((n) - (-(m) % (n))) : ((m) % (n)))
185 185
186#if ecb_cplusplus_does_not_suck 186#if ecb_cplusplus_does_not_suck
187// does not work for local types (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm) 187// does not work for local types (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm)
188template<typename T, int N> 188template<typename T, int N>
189static inline int ecb_array_length (const T (&arr)[N]) 189static inline int ecb_array_length (const T (&arr)[N])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines