From f4c1ba9ed9f1555f7a6dbd5bbd84f7b936019ead Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 31 Oct 2011 14:19:10 +0000 Subject: cogl-flags: Use longs instead of ints Previously cogl-flags was using an array of ints to store the flags. There was a comment saying that it would be nice to use longs but this is awkward because g_parse_debug_flags can only work in ints. This is a silly reason not to use longs because we can just parse multiple sets of flags per long. This patch therefore changes cogl-flags to use longs and tweaks the debug key parsing code. Reviewed-by: Robert Bragg --- cogl/cogl-debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cogl/cogl-debug.h') diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h index 3c8c73ae..901850f7 100644 --- a/cogl/cogl-debug.h +++ b/cogl/cogl-debug.h @@ -72,9 +72,9 @@ typedef enum { #ifdef COGL_ENABLE_DEBUG -#define COGL_DEBUG_N_INTS COGL_FLAGS_N_INTS_FOR_SIZE (COGL_DEBUG_N_FLAGS) +#define COGL_DEBUG_N_LONGS COGL_FLAGS_N_LONGS_FOR_SIZE (COGL_DEBUG_N_FLAGS) -extern unsigned int _cogl_debug_flags[COGL_DEBUG_N_INTS]; +extern unsigned long _cogl_debug_flags[COGL_DEBUG_N_LONGS]; extern GHashTable *_cogl_debug_instances; #define COGL_DEBUG_ENABLED(flag) \ -- cgit v1.2.1