diff options
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 */ |