aboutsummaryrefslogtreecommitdiffhomepage
path: root/util.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
commit9992b8eb0e3366ff8a3948aa0b66a19c3c12c737 (patch)
tree6dda0fef85812016fbba9ea067c9d586092b506d /util.h
parentbab69f26724028d16054a3daf5c78aad7c67bb2d (diff)
Apply new indentation, brace, and whitespace style
Diffstat (limited to 'util.h')
-rw-r--r--util.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util.h b/util.h
index c16c5912..c3ef0ca9 100644
--- a/util.h
+++ b/util.h
@@ -20,9 +20,9 @@
*/
typedef struct buffer
{
- char *buff; /**<data buffer*/
- size_t length; /**< Size of buffer */
- size_t used; /**< Size of data in buffer */
+ char *buff; /**<data buffer*/
+ size_t length; /**< Size of buffer */
+ size_t used; /**< Size of data in buffer */
}
buffer_t;
@@ -30,7 +30,7 @@ buffer_t;
Returns the larger of two ints
*/
template<typename T>
-static inline T maxi( T a, T b )
+static inline T maxi(T a, T b)
{
return a>b?a:b;
}
@@ -39,7 +39,7 @@ static inline T maxi( T a, T b )
Returns the smaller of two ints
*/
template<typename T>
-static inline T mini( T a, T b )
+static inline T mini(T a, T b)
{
return a<b?a:b;
}
@@ -78,7 +78,7 @@ static inline T mini( T a, T b )
internal sort order is not arbitrary, but the names 'file1',
'File2' and 'file3' will still be sorted in the order given above.
*/
-int wcsfilecmp( const wchar_t *a, const wchar_t *b );
+int wcsfilecmp(const wchar_t *a, const wchar_t *b);
/**
Get the current time in microseconds since Jan 1, 1970