Coding style and whitespace cleanup.

This commit is contained in:
Matthew Barnes
2010-08-28 16:37:10 -04:00
parent 9c33b2f484
commit ef7dcf5b2a
2 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ gpointer art_realloc(gpointer ptr, gsize size);
/* This one must be used carefully - in particular, p and max should
be variables. They can also be pstruct->el lvalues. */
#define art_expand(p, type, max) \
do { if(max) { p = art_renew (p, type, max <<= 1); } \
do { if (max) { p = art_renew (p, type, max <<= 1); } \
else { max = 1; p = art_new(type, 1); } } while (0)
typedef gint art_boolean;

View File

@ -54,14 +54,14 @@ G_BEGIN_DECLS
* [0, 255].
*/
#define GNOME_CANVAS_COLOR(r, g, b) ((((unsigned int) (r) & 0xff) << 24) \
| (((unsigned int) (g) & 0xff) << 16) \
| (((unsigned int) (b) & 0xff) << 8) \
#define GNOME_CANVAS_COLOR(r, g, b) ((((guint) (r) & 0xff) << 24) \
| (((guint) (g) & 0xff) << 16) \
| (((guint) (b) & 0xff) << 8) \
| 0xff)
#define GNOME_CANVAS_COLOR_A(r, g, b, a) ((((unsigned int) (r) & 0xff) << 24) \
| (((unsigned int) (g) & 0xff) << 16) \
| (((unsigned int) (b) & 0xff) << 8) \
#define GNOME_CANVAS_COLOR_A(r, g, b, a) ((((guint) (r) & 0xff) << 24) \
| (((guint) (g) & 0xff) << 16) \
| (((guint) (b) & 0xff) << 8) \
| ((guint) (a) & 0xff))
typedef struct _GnomeCanvas GnomeCanvas;