[gegl] fractal-trace: Use typedefs for enums
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] fractal-trace: Use typedefs for enums
- Date: Thu, 30 Jun 2011 16:26:50 +0000 (UTC)
commit dde5b2847c3f4641798a2d264c152d6bf819fca5
Author: Mukund Sivaraman <muks banu com>
Date: Thu Jun 30 21:03:49 2011 +0530
fractal-trace: Use typedefs for enums
operations/workshop/fractal-trace.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/operations/workshop/fractal-trace.c b/operations/workshop/fractal-trace.c
index 90bf1aa..6fb41b4 100644
--- a/operations/workshop/fractal-trace.c
+++ b/operations/workshop/fractal-trace.c
@@ -53,19 +53,19 @@ gegl_chant_string (background, _("Background"), "wrap",
#include <math.h>
#include <stdio.h>
-enum OutsideType
+typedef enum
{
OUTSIDE_TYPE_WRAP,
OUTSIDE_TYPE_TRANSPARENT,
OUTSIDE_TYPE_BLACK,
OUTSIDE_TYPE_WHITE
-};
+} OutsideType;
-enum FractalType
+typedef enum
{
FRACTAL_TYPE_MANDELBROT,
FRACTAL_TYPE_JULIA
-};
+} FractalType;
static void prepare (GeglOperation *operation)
@@ -113,8 +113,8 @@ fractaltrace (GeglBuffer *input,
const GeglRectangle *roi,
GeglChantO *o,
gint y,
- enum FractalType fractal,
- enum OutsideType id,
+ FractalType fractal,
+ OutsideType id,
Babl *format
)
{
@@ -223,8 +223,8 @@ process (GeglOperation *operation,
GeglRectangle boundary = gegl_operation_get_bounding_box (operation);
Babl *format = babl_format ("RGBA float");
- enum FractalType frT;
- enum OutsideType id;
+ FractalType frT;
+ OutsideType id;
gfloat *dst_buf;
gint y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]