[gegl] Fix #ifdefs
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Fix #ifdefs
- Date: Thu, 29 Jul 2010 10:13:31 +0000 (UTC)
commit d0bb521fbd9e30af29e376dc40e8ab49d132bca8
Author: Mukund Sivaraman <muks banu com>
Date: Thu Jul 29 15:43:01 2010 +0530
Fix #ifdefs
These cases should use #ifdef instead of #if.
gegl/buffer/gegl-tile-handler-cache.c | 8 ++++----
operations/affine/reflect.c | 2 +-
operations/affine/rotate.c | 2 +-
operations/affine/scale.c | 2 +-
operations/affine/shear.c | 2 +-
operations/affine/transform.c | 2 +-
operations/affine/translate.c | 2 +-
7 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-handler-cache.c b/gegl/buffer/gegl-tile-handler-cache.c
index d293bf8..0e1de0e 100644
--- a/gegl/buffer/gegl-tile-handler-cache.c
+++ b/gegl/buffer/gegl-tile-handler-cache.c
@@ -87,7 +87,7 @@ static GQueue *cache_queue = NULL;
static GHashTable *cache_ht = NULL;
static gint cache_wash_percentage = 20;
static gint cache_total = 0; /* approximate amount of bytes stored */
-#if GEGL_DEBUG_CACHE_HITS
+#ifdef GEGL_DEBUG_CACHE_HITS
static gint cache_hits = 0;
static gint cache_misses = 0;
#endif
@@ -171,12 +171,12 @@ gegl_tile_handler_cache_get_tile_command (GeglTileSource *tile_store,
tile = gegl_tile_handler_cache_get_tile (cache, x, y, z);
if (tile)
{
-#if GEGL_DEBUG_CACHE_HITS
+#ifdef GEGL_DEBUG_CACHE_HITS
cache_hits++;
#endif
return tile;
}
-#if GEGL_DEBUG_CACHE_HITS
+#ifdef GEGL_DEBUG_CACHE_HITS
cache_misses++;
#endif
@@ -447,7 +447,7 @@ gegl_tile_handler_cache_insert (GeglTileHandlerCache *cache,
while (cache_total > gegl_config()->cache_size)
{
-#if GEGL_DEBUG_CACHE_HITS
+#ifdef GEGL_DEBUG_CACHE_HITS
GEGL_NOTE(GEGL_DEBUG_CACHE, "cache_total:%i > cache_size:%i", cache_total, gegl_config()->cache_size);
GEGL_NOTE(GEGL_DEBUG_CACHE, "%f%% hit:%i miss:%i %i]", cache_hits*100.0/(cache_hits+cache_misses), cache_hits, cache_misses, g_queue_get_length (cache_queue));
#endif
diff --git a/operations/affine/reflect.c b/operations/affine/reflect.c
index 6857dff..8e2c23b 100644
--- a/operations/affine/reflect.c
+++ b/operations/affine/reflect.c
@@ -23,7 +23,7 @@
#include <glib/gi18n-lib.h>
-#if GEGL_CHANT_PROPERTIES
+#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
_("Direction vector's x component"))
diff --git a/operations/affine/rotate.c b/operations/affine/rotate.c
index 2e763e5..9efc0e2 100644
--- a/operations/affine/rotate.c
+++ b/operations/affine/rotate.c
@@ -20,7 +20,7 @@
#include <glib/gi18n-lib.h>
-#if GEGL_CHANT_PROPERTIES
+#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (degrees, -G_MAXDOUBLE, G_MAXDOUBLE, 0.,
_("Angle to rotate (clockwize)"))
diff --git a/operations/affine/scale.c b/operations/affine/scale.c
index 3fcdf1c..fc7b511 100644
--- a/operations/affine/scale.c
+++ b/operations/affine/scale.c
@@ -20,7 +20,7 @@
#include <glib/gi18n-lib.h>
-#if GEGL_CHANT_PROPERTIES
+#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1., _("Horizontal scale factor."))
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1., _("Vertical scale factor."))
diff --git a/operations/affine/shear.c b/operations/affine/shear.c
index b8c8d2d..ec8045d 100644
--- a/operations/affine/shear.c
+++ b/operations/affine/shear.c
@@ -20,7 +20,7 @@
#include <glib/gi18n-lib.h>
-#if GEGL_CHANT_PROPERTIES
+#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1.,
_("Horizontal shear amount."))
diff --git a/operations/affine/transform.c b/operations/affine/transform.c
index 828abb5..03a2402 100644
--- a/operations/affine/transform.c
+++ b/operations/affine/transform.c
@@ -20,7 +20,7 @@
#include <glib/gi18n-lib.h>
-#if GEGL_CHANT_PROPERTIES
+#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_string (transform, "", _("Transformation string"))
diff --git a/operations/affine/translate.c b/operations/affine/translate.c
index 469252d..f73e3a6 100644
--- a/operations/affine/translate.c
+++ b/operations/affine/translate.c
@@ -20,7 +20,7 @@
#include <glib/gi18n-lib.h>
-#if GEGL_CHANT_PROPERTIES
+#ifdef GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1.,
_("Horizontal translation."))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]