[gegl] operations/workshop: Include source code as metadata



commit fdaed5ae95ca8cdd4a93e1ecb221e130d3341e72
Author: Jon Nordby <jononor gmail com>
Date:   Wed Jan 21 00:35:57 2015 +0100

    operations/workshop: Include source code as metadata
    
    sed -i -e 's/^.*\"\(.*\.c\)\".*$/#define GEGL_OP_C_SOURCE \1/' operations/workshop/*.c
    sed -i -e 's/^.*\"\(.*\.c\)\".*$/#define GEGL_OP_C_SOURCE \1/' operations/workshop/external/*.c

 operations/workshop/box-max.c               |    2 +-
 operations/workshop/box-min.c               |    2 +-
 operations/workshop/box-percentile.c        |    2 +-
 operations/workshop/buffer-cache.c          |    2 +-
 operations/workshop/color-warp.c            |    2 +-
 operations/workshop/demosaic-bimedian.c     |    2 +-
 operations/workshop/demosaic-simple.c       |    2 +-
 operations/workshop/disc-percentile.c       |    2 +-
 operations/workshop/ditto.c                 |    2 +-
 operations/workshop/external/ff-save.c      |    2 +-
 operations/workshop/external/gluas.c        |    2 +-
 operations/workshop/external/lens-correct.c |    2 +-
 operations/workshop/external/line-profile.c |    2 +-
 operations/workshop/external/v4l2.c         |    2 +-
 operations/workshop/gaussian-blur-iir.c     |    2 +-
 operations/workshop/gblur-1d.c              |    2 +-
 operations/workshop/gradient-map.c          |    2 +-
 operations/workshop/hstack.c                |    2 +-
 operations/workshop/ink-simulator.c         |    2 +-
 operations/workshop/kuwahara.c              |    2 +-
 operations/workshop/mandelbrot.c            |    2 +-
 operations/workshop/rawbayer-load.c         |    2 +-
 operations/workshop/snn-percentile.c        |    2 +-
 operations/workshop/unpremul.c              |    2 +-
 24 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/operations/workshop/box-max.c b/operations/workshop/box-max.c
index dcf457e..040592a 100644
--- a/operations/workshop/box-max.c
+++ b/operations/workshop/box-max.c
@@ -29,7 +29,7 @@ property_double (radius, _("Radius"), 4.0)
 #else
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "box-max.c"
+#define GEGL_OP_C_SOURCE box-max.c
 
 #include "gegl-op.h"
 #include <stdio.h>
diff --git a/operations/workshop/box-min.c b/operations/workshop/box-min.c
index 6685215..62f9ec1 100644
--- a/operations/workshop/box-min.c
+++ b/operations/workshop/box-min.c
@@ -29,7 +29,7 @@ property_double (radius, _("Radius"), 4.0)
 #else
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "box-min.c"
+#define GEGL_OP_C_SOURCE box-min.c
 
 #include "gegl-op.h"
 #include <stdio.h>
diff --git a/operations/workshop/box-percentile.c b/operations/workshop/box-percentile.c
index 994e0d7..f4ba570 100644
--- a/operations/workshop/box-percentile.c
+++ b/operations/workshop/box-percentile.c
@@ -37,7 +37,7 @@ property_double (percentile, _("Percentile"), 50.0)
 #define MAX_SAMPLES 20000 /* adapted to max level of radius */
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "box-percentile.c"
+#define GEGL_OP_C_SOURCE box-percentile.c
 
 #include "gegl-op.h"
 #include <stdio.h>
diff --git a/operations/workshop/buffer-cache.c b/operations/workshop/buffer-cache.c
index b97b750..bca8297 100644
--- a/operations/workshop/buffer-cache.c
+++ b/operations/workshop/buffer-cache.c
@@ -28,7 +28,7 @@ property_pointer (buffer, _("Cache buffer"),
 #else
 
 #define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE       "buffer-cache.c"
+#define GEGL_OP_C_SOURCE buffer-cache.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/color-warp.c b/operations/workshop/color-warp.c
index 999353b..6c07949 100644
--- a/operations/workshop/color-warp.c
+++ b/operations/workshop/color-warp.c
@@ -61,7 +61,7 @@ property_double (amount, _("amount"), 1.0)
 #else
 
 #define GEGL_OP_POINT_FILTER
-#define GEGL_OP_C_FILE "color-warp.c"
+#define GEGL_OP_C_SOURCE color-warp.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/demosaic-bimedian.c b/operations/workshop/demosaic-bimedian.c
index b2cac68..df078e0 100644
--- a/operations/workshop/demosaic-bimedian.c
+++ b/operations/workshop/demosaic-bimedian.c
@@ -30,7 +30,7 @@ property_int (pattern, _("Bayer pattern"), 0)
 #else
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "demosaic-bimedian.c"
+#define GEGL_OP_C_SOURCE demosaic-bimedian.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/demosaic-simple.c b/operations/workshop/demosaic-simple.c
index b298b4a..81a5527 100644
--- a/operations/workshop/demosaic-simple.c
+++ b/operations/workshop/demosaic-simple.c
@@ -29,7 +29,7 @@ property_int (pattern, _("Bayer pattern"), 0)
 #else
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "demosaic-simple.c"
+#define GEGL_OP_C_SOURCE demosaic-simple.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/disc-percentile.c b/operations/workshop/disc-percentile.c
index f6f2f83..dae6322 100644
--- a/operations/workshop/disc-percentile.c
+++ b/operations/workshop/disc-percentile.c
@@ -35,7 +35,7 @@ property_double (percentile, _("Percentile"), 50.0)
 #define MAX_SAMPLES 20000 /* adapted to max level of radius */
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "disc-percentile.c"
+#define GEGL_OP_C_SOURCE disc-percentile.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/ditto.c b/operations/workshop/ditto.c
index 3330153..72a23cb 100644
--- a/operations/workshop/ditto.c
+++ b/operations/workshop/ditto.c
@@ -31,7 +31,7 @@ property_enum (sampler_type, _("Sampler"), GeglSamplerType, gegl_sampler_type,
 #else
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "ditto.c"
+#define GEGL_OP_C_SOURCE ditto.c
 
 #include "gegl-op.h"
 #include <stdio.h>
diff --git a/operations/workshop/external/ff-save.c b/operations/workshop/external/ff-save.c
index 8146599..834a295 100644
--- a/operations/workshop/external/ff-save.c
+++ b/operations/workshop/external/ff-save.c
@@ -39,7 +39,7 @@ property_double (fps, _("Frames/second"), 25)
 #else
 
 #define GEGL_OP_SINK
-#define GEGL_OP_C_FILE       "ff-save.c"
+#define GEGL_OP_C_SOURCE ff-save.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
index 46e1aa3..7b26dcb 100644
--- a/operations/workshop/external/gluas.c
+++ b/operations/workshop/external/gluas.c
@@ -52,7 +52,7 @@ property_double (user_value, _("User value"), 1.0)
 #else
 
 #define GEGL_OP_COMPOSER
-#define GEGL_OP_C_FILE       "gluas.c"
+#define GEGL_OP_C_SOURCE gluas.c
 
 #include "gegl-op.h"
 #include <lua.h>
diff --git a/operations/workshop/external/lens-correct.c b/operations/workshop/external/lens-correct.c
index fb25e5d..41054de 100644
--- a/operations/workshop/external/lens-correct.c
+++ b/operations/workshop/external/lens-correct.c
@@ -94,7 +94,7 @@ property_double (alpha_d, _("Model alpha d"), 1.0)
 #else
 
 #define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE       "lens-correct.c"
+#define GEGL_OP_C_SOURCE lens-correct.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/external/line-profile.c b/operations/workshop/external/line-profile.c
index d039eeb..3bb39fc 100644
--- a/operations/workshop/external/line-profile.c
+++ b/operations/workshop/external/line-profile.c
@@ -52,7 +52,7 @@ property_double (max, _("Max"), 8.0)
 #else
 
 #define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE       "line-profile.c"
+#define GEGL_OP_C_SOURCE line-profile.c
 
 #include "gegl-op.h"
 #include <cairo.h>
diff --git a/operations/workshop/external/v4l2.c b/operations/workshop/external/v4l2.c
index f577857..d1874cb 100644
--- a/operations/workshop/external/v4l2.c
+++ b/operations/workshop/external/v4l2.c
@@ -35,7 +35,7 @@ property_int  (fps, _("FPS"),  0)
 #else
 
 #define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE       "v4l2.c"
+#define GEGL_OP_C_SOURCE v4l2.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/gaussian-blur-iir.c b/operations/workshop/gaussian-blur-iir.c
index baf8217..b19483e 100644
--- a/operations/workshop/gaussian-blur-iir.c
+++ b/operations/workshop/gaussian-blur-iir.c
@@ -62,7 +62,7 @@ property_boolean   (clip_extent, _("Clip to the input extent"), TRUE)
 #else
 
 #define GEGL_OP_META
-#define GEGL_OP_C_FILE "gaussian-blur-iir.c"
+#define GEGL_OP_C_SOURCE gaussian-blur-iir.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/gblur-1d.c b/operations/workshop/gblur-1d.c
index e1297da..8cd1471 100644
--- a/operations/workshop/gblur-1d.c
+++ b/operations/workshop/gblur-1d.c
@@ -66,7 +66,7 @@ property_boolean (clip_extent, _("Clip to the input extent"), TRUE)
 #else
 
 #define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE       "gblur-1d.c"
+#define GEGL_OP_C_SOURCE gblur-1d.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/gradient-map.c b/operations/workshop/gradient-map.c
index b667cab..43b3ba3 100644
--- a/operations/workshop/gradient-map.c
+++ b/operations/workshop/gradient-map.c
@@ -37,7 +37,7 @@ property_boolean(srgb, _("sRGB"), FALSE)
 #else
 
 #define GEGL_OP_POINT_FILTER
-#define GEGL_OP_C_FILE "gradient-map.c"
+#define GEGL_OP_C_SOURCE gradient-map.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/hstack.c b/operations/workshop/hstack.c
index fd65813..a6a3a9e 100644
--- a/operations/workshop/hstack.c
+++ b/operations/workshop/hstack.c
@@ -27,7 +27,7 @@
 #else
 
 #define GEGL_OP_COMPOSER
-#define GEGL_OP_C_FILE       "hstack.c"
+#define GEGL_OP_C_SOURCE hstack.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/ink-simulator.c b/operations/workshop/ink-simulator.c
index 3a601e7..c0e97f5 100644
--- a/operations/workshop/ink-simulator.c
+++ b/operations/workshop/ink-simulator.c
@@ -66,7 +66,7 @@ property_int (debug_width, _("Debug width"), 0)
 #else
 
 #define GEGL_OP_POINT_FILTER
-#define GEGL_OP_C_FILE       "ink-simulator.c"
+#define GEGL_OP_C_SOURCE ink-simulator.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/kuwahara.c b/operations/workshop/kuwahara.c
index bee7a2c..0cf88ec 100644
--- a/operations/workshop/kuwahara.c
+++ b/operations/workshop/kuwahara.c
@@ -29,7 +29,7 @@ property_double (radius, _("Radius"), 10.0)
 #else
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "kuwahara.c"
+#define GEGL_OP_C_SOURCE kuwahara.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/mandelbrot.c b/operations/workshop/mandelbrot.c
index 221d5b8..78fc3d3 100644
--- a/operations/workshop/mandelbrot.c
+++ b/operations/workshop/mandelbrot.c
@@ -35,7 +35,7 @@ property_int (maxiter, _("Iterations"), 128)
 #else
 
 #define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE           "mandelbrot.c"
+#define GEGL_OP_C_SOURCE mandelbrot.c
 
 #include "gegl-op.h"
 
diff --git a/operations/workshop/rawbayer-load.c b/operations/workshop/rawbayer-load.c
index 33c2dac..7f088da 100644
--- a/operations/workshop/rawbayer-load.c
+++ b/operations/workshop/rawbayer-load.c
@@ -28,7 +28,7 @@ property_string (path, _("File"), "/tmp/test.raw")
 #else
 
 #define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE       "rawbayer-load.c"
+#define GEGL_OP_C_SOURCE rawbayer-load.c
 
 #include "gegl-op.h"
 #include <unistd.h>
diff --git a/operations/workshop/snn-percentile.c b/operations/workshop/snn-percentile.c
index 1125314..9891526 100644
--- a/operations/workshop/snn-percentile.c
+++ b/operations/workshop/snn-percentile.c
@@ -41,7 +41,7 @@ property_double (percentile, _("Percentile"), 50.0)
 #define MAX_SAMPLES 20000 /* adapted to percentile level of radius */
 
 #define GEGL_OP_AREA_FILTER
-#define GEGL_OP_C_FILE       "snn-percentile.c"
+#define GEGL_OP_C_SOURCE snn-percentile.c
 
 #include "gegl-op.h"
 #include <math.h>
diff --git a/operations/workshop/unpremul.c b/operations/workshop/unpremul.c
index e86a115..6fb7b8e 100644
--- a/operations/workshop/unpremul.c
+++ b/operations/workshop/unpremul.c
@@ -23,7 +23,7 @@
 #else
 
 #define GEGL_OP_POINT_FILTER
-#define GEGL_OP_C_FILE       "unpremul.c"
+#define GEGL_OP_C_SOURCE unpremul.c
 #define GEGLV4
 
 #include "gegl-op.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]