diff options
author | Indent <please@skip.me> | 2015-02-19 02:47:20 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-02-20 19:50:54 -0300 |
commit | 5ebff60479fc7a9f7f50ac03b124c91d4e6ebe11 (patch) | |
tree | 9fc0d50cb1f4bc9768d9f00de94eafd876bb55b0 /protocols/yahoo/yahoo_util.h | |
parent | af359b4316f9d392c6b752495a1b2ed631576ed8 (diff) |
Reindent everything to K&R style with tabs
Used uncrustify, with the configuration file in ./doc/uncrustify.cfg
Commit author set to "Indent <please@skip.me>" so that it's easier to
skip while doing git blame.
Diffstat (limited to 'protocols/yahoo/yahoo_util.h')
-rw-r--r-- | protocols/yahoo/yahoo_util.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/protocols/yahoo/yahoo_util.h b/protocols/yahoo/yahoo_util.h index 6099bf8f..1a033a66 100644 --- a/protocols/yahoo/yahoo_util.h +++ b/protocols/yahoo/yahoo_util.h @@ -29,39 +29,39 @@ #if HAVE_GLIB # include <glib.h> -# define FREE(x) if(x) {g_free(x); x=NULL;} +# define FREE(x) if (x) { g_free(x); x = NULL; } -# define y_new g_new -# define y_new0 g_new0 -# define y_renew g_renew +# define y_new g_new +# define y_new0 g_new0 +# define y_renew g_renew -# define y_memdup g_memdup -# define y_strsplit g_strsplit -# define y_strfreev g_strfreev +# define y_memdup g_memdup +# define y_strsplit g_strsplit +# define y_strfreev g_strfreev # ifndef strdup -# define strdup g_strdup +# define strdup g_strdup # endif # ifndef strncasecmp -# define strncasecmp g_strncasecmp -# define strcasecmp g_strcasecmp +# define strncasecmp g_strncasecmp +# define strcasecmp g_strcasecmp # endif -# define snprintf g_snprintf +# define snprintf g_snprintf #ifdef vsnprintf #undef vsnprintf #endif -# define vsnprintf g_vsnprintf +# define vsnprintf g_vsnprintf #else # include <stdlib.h> # include <stdarg.h> -# define FREE(x) if(x) {free(x); x=NULL;} +# define FREE(x) if (x) { free(x); x = NULL; } -# define y_new(type, n) (type *)malloc(sizeof(type) * (n)) -# define y_new0(type, n) (type *)calloc((n), sizeof(type)) -# define y_renew(type, mem, n) (type *)realloc(mem, n) +# define y_new(type, n) (type *) malloc(sizeof(type) * (n)) +# define y_new0(type, n) (type *) calloc((n), sizeof(type)) +# define y_renew(type, mem, n) (type *) realloc(mem, n) void *y_memdup(const void *addr, int n); char **y_strsplit(char *str, char *sep, int nelem); @@ -86,14 +86,14 @@ int vsnprintf(char *str, size_t size, const char *format, va_list ap); #endif #ifndef MIN -#define MIN(x,y) ((x)<(y)?(x):(y)) +#define MIN(x, y) ((x) < (y) ? (x) : (y)) #endif #ifndef MAX -#define MAX(x,y) ((x)>(y)?(x):(y)) +#define MAX(x, y) ((x) > (y) ? (x) : (y)) #endif -/* +/* * The following three functions return newly allocated memory. * You must free it yourself */ |