[gegl] complete babl constification
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] complete babl constification
- Date: Sun, 18 Mar 2012 16:38:24 +0000 (UTC)
commit 8d121ea9148d112b705b6d824248e1684fdf33d0
Author: Ãyvind KolÃs <pippin gimp org>
Date: Sun Mar 18 16:38:15 2012 +0000
complete babl constification
examples/float-lookup.c | 3 +++
gegl/operation/gegl-operation-point-composer.c | 2 +-
gegl/operation/gegl-operation-point-composer3.c | 2 +-
operations/affine/affine.c | 4 ++--
operations/common/color-temperature.c | 2 +-
operations/common/contrast-curve.c | 2 +-
operations/common/grey.c | 2 +-
operations/common/map-absolute.c | 4 ++--
operations/common/map-relative.c | 4 ++--
operations/common/mirrors.c | 4 ++--
operations/common/over.c | 2 +-
operations/common/remap.c | 2 +-
operations/common/svg-huerotate.c | 2 +-
operations/common/svg-luminancetoalpha.c | 2 +-
operations/common/svg-matrix.c | 2 +-
operations/common/svg-saturate.c | 2 +-
operations/common/weighted-blend.c | 2 +-
operations/common/whitebalance.c | 2 +-
operations/core/convert-format.c | 2 +-
operations/external/jpg-save.c | 2 +-
operations/external/path.c | 8 ++++----
operations/external/png-load.c | 2 +-
operations/external/png-save.c | 2 +-
operations/external/ppm-load.c | 4 ++++
operations/external/ppm-save.c | 2 ++
operations/generated/add.c | 2 +-
operations/generated/clear.c | 2 +-
operations/generated/color-burn.c | 2 +-
operations/generated/color-dodge.c | 2 +-
operations/generated/darken.c | 2 +-
operations/generated/difference.c | 2 +-
operations/generated/divide.c | 2 +-
operations/generated/dst-atop.c | 2 +-
operations/generated/dst-in.c | 2 +-
operations/generated/dst-out.c | 2 +-
operations/generated/dst-over.c | 2 +-
operations/generated/dst.c | 2 +-
operations/generated/exclusion.c | 2 +-
operations/generated/gamma.c | 2 +-
operations/generated/hard-light.c | 2 +-
operations/generated/lighten.c | 2 +-
operations/generated/math.rb | 2 +-
operations/generated/multiply.c | 2 +-
operations/generated/other-blend.rb | 2 +-
operations/generated/overlay.c | 2 +-
operations/generated/plus.c | 2 +-
operations/generated/screen.c | 2 +-
operations/generated/soft-light.c | 2 +-
operations/generated/src-atop.c | 2 +-
operations/generated/src-in.c | 2 +-
operations/generated/src-out.c | 2 +-
operations/generated/src-over.c | 2 +-
operations/generated/src.c | 2 +-
operations/generated/subtract.c | 2 +-
operations/generated/svg-12-blend.rb | 2 +-
operations/generated/svg-12-porter-duff.rb | 2 +-
operations/generated/svg-multiply.c | 2 +-
operations/generated/xor.c | 2 +-
tests/simple/test-gegl-tile.c | 3 +--
tests/simple/test-path.c | 4 ++--
60 files changed, 74 insertions(+), 66 deletions(-)
---
diff --git a/examples/float-lookup.c b/examples/float-lookup.c
index c6f6370..edc6c22 100644
--- a/examples/float-lookup.c
+++ b/examples/float-lookup.c
@@ -66,5 +66,8 @@ gint main (int argc, gchar **argv)
gegl_lookup_free (lookup);
g_free (rand);
+
+ if (foo)
+ return 0;
return 0;
}
diff --git a/gegl/operation/gegl-operation-point-composer.c b/gegl/operation/gegl-operation-point-composer.c
index 15f5352..88fc312 100644
--- a/gegl/operation/gegl-operation-point-composer.c
+++ b/gegl/operation/gegl-operation-point-composer.c
@@ -46,7 +46,7 @@ G_DEFINE_TYPE (GeglOperationPointComposer, gegl_operation_point_composer, GEGL_T
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
gegl_operation_set_format (operation, "output", format);
diff --git a/gegl/operation/gegl-operation-point-composer3.c b/gegl/operation/gegl-operation-point-composer3.c
index b7fe8d8..d3771f0 100644
--- a/gegl/operation/gegl-operation-point-composer3.c
+++ b/gegl/operation/gegl-operation-point-composer3.c
@@ -47,7 +47,7 @@ G_DEFINE_TYPE (GeglOperationPointComposer3, gegl_operation_point_composer3, GEGL
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
gegl_operation_set_format (operation, "aux2", format);
diff --git a/operations/affine/affine.c b/operations/affine/affine.c
index aa74c75..d4f73c9 100644
--- a/operations/affine/affine.c
+++ b/operations/affine/affine.c
@@ -164,7 +164,7 @@ op_affine_sampler_init (OpAffine *self)
static void
gegl_affine_prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
/*op_affine_sampler_init (affine);*/
/*gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format); XXX(not used yet) */
@@ -659,7 +659,7 @@ affine_generic (GeglBuffer *dest,
u_float,
v_float;
- Babl *format;
+ const Babl *format;
gint dest_pixels;
diff --git a/operations/common/color-temperature.c b/operations/common/color-temperature.c
index ec3b8ef..0015552 100644
--- a/operations/common/color-temperature.c
+++ b/operations/common/color-temperature.c
@@ -73,7 +73,7 @@ convert_k_to_rgb (gfloat temperature,
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
}
diff --git a/operations/common/contrast-curve.c b/operations/common/contrast-curve.c
index f2c1a3f..1dd6bd9 100644
--- a/operations/common/contrast-curve.c
+++ b/operations/common/contrast-curve.c
@@ -35,7 +35,7 @@ gegl_chant_curve (curve, _("Curve"), _("The contrast curve."))
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("YA float");
+ const Babl *format = babl_format ("YA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
diff --git a/operations/common/grey.c b/operations/common/grey.c
index 7c61695..bcda3cc 100644
--- a/operations/common/grey.c
+++ b/operations/common/grey.c
@@ -33,7 +33,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("YA float");
+ const Babl *format = babl_format ("YA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
diff --git a/operations/common/map-absolute.c b/operations/common/map-absolute.c
index 11fffda..72a9340 100644
--- a/operations/common/map-absolute.c
+++ b/operations/common/map-absolute.c
@@ -35,7 +35,7 @@ gegl_chant_enum (sampler_type, _("Sampler"), GeglSamplerType, GEGL_TYPE_SAMPLER_
static void
prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format_n (babl_type ("float"), 2));
@@ -60,7 +60,7 @@ process (GeglOperation *operation,
const GeglRectangle *result)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
- Babl *format_io, *format_coords;
+ const Babl *format_io, *format_coords;
GeglSampler *sampler;
GeglBufferIterator *it;
gint index_in, index_out, index_coords;
diff --git a/operations/common/map-relative.c b/operations/common/map-relative.c
index 20d6517..0b79845 100644
--- a/operations/common/map-relative.c
+++ b/operations/common/map-relative.c
@@ -39,7 +39,7 @@ gegl_chant_enum (sampler_type, _("Sampler"), GeglSamplerType, GEGL_TYPE_SAMPLER_
static void
prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format_n (babl_type ("float"), 2));
@@ -64,7 +64,7 @@ process (GeglOperation *operation,
const GeglRectangle *result)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
- Babl *format_io, *format_coords;
+ const Babl *format_io, *format_coords;
GeglSampler *sampler;
GeglBufferIterator *it;
gint index_in, index_out, index_coords;
diff --git a/operations/common/mirrors.c b/operations/common/mirrors.c
index cf50185..04c6c69 100644
--- a/operations/common/mirrors.c
+++ b/operations/common/mirrors.c
@@ -120,7 +120,7 @@ apply_mirror (double mirror_angle,
double input_scale,
gboolean clip,
gboolean warp,
- Babl *format,
+ const Babl *format,
GeglBuffer *src,
GeglRectangle *in_boundary,
GeglBuffer *dst,
@@ -354,7 +354,7 @@ process (GeglOperation *operation,
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglRectangle boundary = gegl_operation_get_bounding_box (operation);
GeglRectangle eff_boundary = get_effective_area (operation);
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
#ifdef DO_NOT_USE_BUFFER_SAMPLE
g_warning ("NOT USING BUFFER SAMPLE!");
diff --git a/operations/common/over.c b/operations/common/over.c
index 1519ec2..026253e 100644
--- a/operations/common/over.c
+++ b/operations/common/over.c
@@ -33,7 +33,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/common/remap.c b/operations/common/remap.c
index e24af5c..beb30cd 100644
--- a/operations/common/remap.c
+++ b/operations/common/remap.c
@@ -33,7 +33,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/common/svg-huerotate.c b/operations/common/svg-huerotate.c
index 23b759e..8161c94 100644
--- a/operations/common/svg-huerotate.c
+++ b/operations/common/svg-huerotate.c
@@ -37,7 +37,7 @@ gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
diff --git a/operations/common/svg-luminancetoalpha.c b/operations/common/svg-luminancetoalpha.c
index 39ac955..c5a37df 100644
--- a/operations/common/svg-luminancetoalpha.c
+++ b/operations/common/svg-luminancetoalpha.c
@@ -37,7 +37,7 @@ gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
diff --git a/operations/common/svg-matrix.c b/operations/common/svg-matrix.c
index 9deada1..19768d4 100644
--- a/operations/common/svg-matrix.c
+++ b/operations/common/svg-matrix.c
@@ -37,7 +37,7 @@ gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
diff --git a/operations/common/svg-saturate.c b/operations/common/svg-saturate.c
index b7359ff..c9d4b7d 100644
--- a/operations/common/svg-saturate.c
+++ b/operations/common/svg-saturate.c
@@ -37,7 +37,7 @@ gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
diff --git a/operations/common/weighted-blend.c b/operations/common/weighted-blend.c
index d787810..cf41c52 100644
--- a/operations/common/weighted-blend.c
+++ b/operations/common/weighted-blend.c
@@ -33,7 +33,7 @@ gegl_chant_double (value, _("Value"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, _("global
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/common/whitebalance.c b/operations/common/whitebalance.c
index 0b20ce6..dcb015a 100644
--- a/operations/common/whitebalance.c
+++ b/operations/common/whitebalance.c
@@ -37,7 +37,7 @@ gegl_chant_double (saturation, _("Saturation"), -3.0, 3.0, 1.0, _(""))
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("Y'CbCrA float");
+ const Babl *format = babl_format ("Y'CbCrA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
}
diff --git a/operations/core/convert-format.c b/operations/core/convert-format.c
index dd9e3d2..7fe4e81 100644
--- a/operations/core/convert-format.c
+++ b/operations/core/convert-format.c
@@ -38,7 +38,7 @@ gegl_chant_string(format, _("Output format"), "RGBA float",
static void prepare (GeglOperation *operation)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
- Babl *format;
+ const Babl *format;
g_assert (o->format);
diff --git a/operations/external/jpg-save.c b/operations/external/jpg-save.c
index e3c52ca..ac0daa6 100644
--- a/operations/external/jpg-save.c
+++ b/operations/external/jpg-save.c
@@ -61,7 +61,7 @@ gegl_buffer_export_jpg (GeglBuffer *gegl_buffer,
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
JSAMPROW row_pointer[1];
- Babl *format;
+ const Babl *format;
if (!strcmp (path, "-"))
{
diff --git a/operations/external/path.c b/operations/external/path.c
index 0684d27..555be89 100644
--- a/operations/external/path.c
+++ b/operations/external/path.c
@@ -67,10 +67,10 @@ static void path_changed (GeglPath *path,
#include <math.h>
typedef struct StampStatic {
- gboolean valid;
- Babl *format;
- gfloat *buf;
- gdouble radius;
+ gboolean valid;
+ const Babl *format;
+ gfloat *buf;
+ gdouble radius;
}StampStatic;
static void gegl_path_stroke (GeglBuffer *buffer,
diff --git a/operations/external/png-load.c b/operations/external/png-load.c
index 2278a8c..90a6ab8 100644
--- a/operations/external/png-load.c
+++ b/operations/external/png-load.c
@@ -358,7 +358,7 @@ static gint query_png (const gchar *path,
return -1;
}
- *format = babl_format (format_string);
+ *format = (void*)babl_format (format_string);
}
png_destroy_read_struct (&load_png_ptr, &load_info_ptr, NULL);
fclose (infile);
diff --git a/operations/external/png-save.c b/operations/external/png-save.c
index 7417bc0..a7aee45 100644
--- a/operations/external/png-save.c
+++ b/operations/external/png-save.c
@@ -70,7 +70,7 @@ gegl_buffer_export_png (GeglBuffer *gegl_buffer,
png_color_16 white;
int png_color_type;
gchar format_string[16];
- Babl *format;
+ const Babl *format;
gint bit_depth = 8;
if (!strcmp (path, "-"))
diff --git a/operations/external/ppm-load.c b/operations/external/ppm-load.c
index 5f92486..7134de1 100644
--- a/operations/external/ppm-load.c
+++ b/operations/external/ppm-load.c
@@ -110,6 +110,8 @@ ppm_load_read_header(FILE *fp,
}
return TRUE;
+ if (retval)
+ return TRUE;
}
static void
@@ -166,6 +168,8 @@ ppm_load_read_image(FILE *fp,
g_warning ("%s: Programmer stupidity error", G_STRLOC);
}
}
+ if (retval)
+ return;
}
static GeglRectangle
diff --git a/operations/external/ppm-save.c b/operations/external/ppm-save.c
index 34fce87..6a63709 100644
--- a/operations/external/ppm-save.c
+++ b/operations/external/ppm-save.c
@@ -108,6 +108,8 @@ ppm_save_write(FILE *fp,
g_warning ("%s: Programmer stupidity error", G_STRLOC);
}
}
+ if (retval) /* make gcc shut up*/
+ return;
}
static gboolean
diff --git a/operations/generated/add.c b/operations/generated/add.c
index 8f9ec59..5ed9b9c 100644
--- a/operations/generated/add.c
+++ b/operations/generated/add.c
@@ -43,7 +43,7 @@ gegl_chant_double (value, _("Value"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, _("global
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format ("RGB float"));
diff --git a/operations/generated/clear.c b/operations/generated/clear.c
index 99f97ac..40c8818 100644
--- a/operations/generated/clear.c
+++ b/operations/generated/clear.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/color-burn.c b/operations/generated/color-burn.c
index 3c2df63..609a13f 100644
--- a/operations/generated/color-burn.c
+++ b/operations/generated/color-burn.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/color-dodge.c b/operations/generated/color-dodge.c
index 00749ef..312d7b9 100644
--- a/operations/generated/color-dodge.c
+++ b/operations/generated/color-dodge.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/darken.c b/operations/generated/darken.c
index dd85d87..4ea6c1c 100644
--- a/operations/generated/darken.c
+++ b/operations/generated/darken.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/difference.c b/operations/generated/difference.c
index 469a40b..60ed1e6 100644
--- a/operations/generated/difference.c
+++ b/operations/generated/difference.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/divide.c b/operations/generated/divide.c
index 928e4b6..938e0c1 100644
--- a/operations/generated/divide.c
+++ b/operations/generated/divide.c
@@ -43,7 +43,7 @@ gegl_chant_double (value, _("Value"), -G_MAXDOUBLE, G_MAXDOUBLE, 1.0, _("global
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format ("RGB float"));
diff --git a/operations/generated/dst-atop.c b/operations/generated/dst-atop.c
index 23908c9..021b411 100644
--- a/operations/generated/dst-atop.c
+++ b/operations/generated/dst-atop.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/dst-in.c b/operations/generated/dst-in.c
index aa72748..a41c93a 100644
--- a/operations/generated/dst-in.c
+++ b/operations/generated/dst-in.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/dst-out.c b/operations/generated/dst-out.c
index 1040904..4634193 100644
--- a/operations/generated/dst-out.c
+++ b/operations/generated/dst-out.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/dst-over.c b/operations/generated/dst-over.c
index 40c79b2..e6628a4 100644
--- a/operations/generated/dst-over.c
+++ b/operations/generated/dst-over.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/dst.c b/operations/generated/dst.c
index 038d0d4..14a7183 100644
--- a/operations/generated/dst.c
+++ b/operations/generated/dst.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/exclusion.c b/operations/generated/exclusion.c
index 8459b58..e31a753 100644
--- a/operations/generated/exclusion.c
+++ b/operations/generated/exclusion.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/gamma.c b/operations/generated/gamma.c
index 13e90a2..e9022b2 100644
--- a/operations/generated/gamma.c
+++ b/operations/generated/gamma.c
@@ -43,7 +43,7 @@ gegl_chant_double (value, _("Value"), -G_MAXDOUBLE, G_MAXDOUBLE, 1.0, _("global
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format ("RGB float"));
diff --git a/operations/generated/hard-light.c b/operations/generated/hard-light.c
index 8ef1d67..3572f0e 100644
--- a/operations/generated/hard-light.c
+++ b/operations/generated/hard-light.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/lighten.c b/operations/generated/lighten.c
index b4c2938..5acad24 100644
--- a/operations/generated/lighten.c
+++ b/operations/generated/lighten.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/math.rb b/operations/generated/math.rb
index 0d37c8c..946ff9c 100755
--- a/operations/generated/math.rb
+++ b/operations/generated/math.rb
@@ -72,7 +72,7 @@ gegl_chant_double (value, _(\"Value\"), -G_MAXDOUBLE, G_MAXDOUBLE, #{item[2]}, _
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format (\"RGBA float\");
+ const Babl *format = babl_format (\"RGBA float\");
gegl_operation_set_format (operation, \"input\", format);
gegl_operation_set_format (operation, \"aux\", babl_format (\"RGB float\"));
diff --git a/operations/generated/multiply.c b/operations/generated/multiply.c
index d2ed165..bfc994c 100644
--- a/operations/generated/multiply.c
+++ b/operations/generated/multiply.c
@@ -43,7 +43,7 @@ gegl_chant_double (value, _("Value"), -G_MAXDOUBLE, G_MAXDOUBLE, 1.0, _("global
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format ("RGB float"));
diff --git a/operations/generated/other-blend.rb b/operations/generated/other-blend.rb
index e866a40..a6eb5dc 100755
--- a/operations/generated/other-blend.rb
+++ b/operations/generated/other-blend.rb
@@ -55,7 +55,7 @@ file_head1 = '
file_head2 = '
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/overlay.c b/operations/generated/overlay.c
index c0c83ae..32fcbb8 100644
--- a/operations/generated/overlay.c
+++ b/operations/generated/overlay.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/plus.c b/operations/generated/plus.c
index 3583d31..614b134 100644
--- a/operations/generated/plus.c
+++ b/operations/generated/plus.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/screen.c b/operations/generated/screen.c
index c972beb..06d60e8 100644
--- a/operations/generated/screen.c
+++ b/operations/generated/screen.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/soft-light.c b/operations/generated/soft-light.c
index dbc5ab9..cbfdf4f 100644
--- a/operations/generated/soft-light.c
+++ b/operations/generated/soft-light.c
@@ -46,7 +46,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/src-atop.c b/operations/generated/src-atop.c
index 92d0c5a..71f1144 100644
--- a/operations/generated/src-atop.c
+++ b/operations/generated/src-atop.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/src-in.c b/operations/generated/src-in.c
index fa8ca22..9e5a8f3 100644
--- a/operations/generated/src-in.c
+++ b/operations/generated/src-in.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/src-out.c b/operations/generated/src-out.c
index 62883bf..32985ef 100644
--- a/operations/generated/src-out.c
+++ b/operations/generated/src-out.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/src-over.c b/operations/generated/src-over.c
index 26a94b6..dd6abc0 100644
--- a/operations/generated/src-over.c
+++ b/operations/generated/src-over.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/src.c b/operations/generated/src.c
index 8ab98b3..8eef194 100644
--- a/operations/generated/src.c
+++ b/operations/generated/src.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/subtract.c b/operations/generated/subtract.c
index b609025..34f62d2 100644
--- a/operations/generated/subtract.c
+++ b/operations/generated/subtract.c
@@ -43,7 +43,7 @@ gegl_chant_double (value, _("Value"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, _("global
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RGBA float");
+ const Babl *format = babl_format ("RGBA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", babl_format ("RGB float"));
diff --git a/operations/generated/svg-12-blend.rb b/operations/generated/svg-12-blend.rb
index fcb337c..b6ca188 100755
--- a/operations/generated/svg-12-blend.rb
+++ b/operations/generated/svg-12-blend.rb
@@ -84,7 +84,7 @@ file_head1 = '
file_head2 = '
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/svg-12-porter-duff.rb b/operations/generated/svg-12-porter-duff.rb
index 204d082..daac74a 100755
--- a/operations/generated/svg-12-porter-duff.rb
+++ b/operations/generated/svg-12-porter-duff.rb
@@ -75,7 +75,7 @@ file_head1 = '
file_head2 = '
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/svg-multiply.c b/operations/generated/svg-multiply.c
index d96b710..b94a141 100644
--- a/operations/generated/svg-multiply.c
+++ b/operations/generated/svg-multiply.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/operations/generated/xor.c b/operations/generated/xor.c
index 47c988c..b7080b4 100644
--- a/operations/generated/xor.c
+++ b/operations/generated/xor.c
@@ -45,7 +45,7 @@
static void prepare (GeglOperation *operation)
{
- Babl *format = babl_format ("RaGaBaA float");
+ const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "aux", format);
diff --git a/tests/simple/test-gegl-tile.c b/tests/simple/test-gegl-tile.c
index 1f5905e..374a5e8 100644
--- a/tests/simple/test-gegl-tile.c
+++ b/tests/simple/test-gegl-tile.c
@@ -32,8 +32,7 @@ unlock_callback (GeglTile *tile,
}
static void
-free_callback (gpointer pixel_data,
- gpointer user_data)
+free_callback (gpointer user_data)
{
gboolean *callback_called = user_data;
*callback_called = TRUE;
diff --git a/tests/simple/test-path.c b/tests/simple/test-path.c
index 6ad8339..bdb73cf 100644
--- a/tests/simple/test-path.c
+++ b/tests/simple/test-path.c
@@ -51,12 +51,12 @@ test_path_calc_values (GeglPath *path, int num_samples,
{
int i=0;
gdouble x[num_samples], y[num_samples];
- gdouble length;
+ //gdouble length;
/* gegl_path_calc_values:
* Compute @num_samples for a path into the provided arrays @xs and @ys
* the returned values include the start and end positions of the path.
*/
- length = gegl_path_get_length(path);
+ //length = gegl_path_get_length(path);
gegl_path_calc_values(path,num_samples,x,y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]