[gegl] remove trailing white space in core
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] remove trailing white space in core
- Date: Sat, 16 Apr 2011 19:30:00 +0000 (UTC)
commit 3d438df3141ac7915cd22099fe3c06bc2a061c79
Author: �yvind Kolås <pippin gimp org>
Date: Sat Apr 16 20:19:51 2011 +0100
remove trailing white space in core
gegl/buffer/gegl-buffer-access.c | 2 +-
gegl/buffer/gegl-buffer-index.h | 8 ++--
gegl/buffer/gegl-buffer-iterator.c | 22 ++++++------
gegl/buffer/gegl-buffer-iterator.h | 4 +-
gegl/buffer/gegl-buffer-linear.c | 2 +-
gegl/buffer/gegl-buffer-load.c | 5 +--
gegl/buffer/gegl-buffer-save.c | 8 ++--
gegl/buffer/gegl-buffer.c | 4 +-
gegl/buffer/gegl-buffer.h | 4 +-
gegl/buffer/gegl-id-pool.c | 2 +-
gegl/buffer/gegl-id-pool.h | 2 +-
gegl/buffer/gegl-region.h | 2 +-
gegl/buffer/gegl-tile-backend-file.c | 2 +-
gegl/buffer/gegl-tile-backend-tiledir.c | 6 ++--
gegl/buffer/gegl-tile-handler-cache.c | 4 +-
gegl/buffer/gegl-tile-handler-chain.c | 2 +-
gegl/buffer/gegl-tile-handler-log.c | 4 +-
gegl/buffer/gegl-tile-handler-zoom.c | 2 +-
gegl/buffer/gegl-tile-source.c | 2 +-
gegl/buffer/gegl-tile.c | 6 ++--
gegl/gegl-c.c | 2 +-
gegl/gegl-chant.h | 16 ++++----
gegl/gegl-init.c | 8 ++--
gegl/gegl-matrix.c | 2 +-
gegl/gegl-matrix.h | 6 ++--
gegl/gegl-utils.c | 2 +-
gegl/gegl-xml.c | 2 +-
gegl/gegl.h | 2 +-
gegl/graph/gegl-node.c | 6 ++--
gegl/operation/gegl-extension-handler.c | 1 -
gegl/operation/gegl-operation-context.c | 6 ++--
gegl/operation/gegl-operation-filter.c | 2 +-
gegl/operation/gegl-operation-point-composer.c | 4 +-
gegl/operation/gegl-operation-point-composer.h | 2 +-
gegl/operation/gegl-operation-point-composer3.c | 4 +-
gegl/operation/gegl-operation-point-composer3.h | 2 +-
gegl/operation/gegl-operation-point-filter.c | 3 +-
gegl/operation/gegl-operation-point-render.c | 4 +-
gegl/operation/gegl-operation-processors.c | 2 +-
gegl/operation/gegl-operation-source.c | 2 +-
gegl/operation/gegl-operation-temporal.c | 2 +-
gegl/operation/gegl-operation.h | 2 +-
gegl/operation/gegl-operations.c | 2 +-
gegl/process/gegl-eval-mgr.c | 2 +-
gegl/process/gegl-processor.c | 4 +-
gegl/property-types/gegl-path.c | 44 +++++++++++------------
gegl/property-types/gegl-path.h | 4 +-
47 files changed, 113 insertions(+), 118 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index cb5b93b..9ba0be3 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1108,7 +1108,7 @@ gegl_buffer_sample (GeglBuffer *buffer,
/* unset the cached sampler if it dosn't match the needs */
if (buffer->sampler != NULL &&
- (!G_TYPE_CHECK_INSTANCE_TYPE (buffer->sampler, desired_type) ||
+ (!G_TYPE_CHECK_INSTANCE_TYPE (buffer->sampler, desired_type) ||
buffer->sampler_format != format
))
{
diff --git a/gegl/buffer/gegl-buffer-index.h b/gegl/buffer/gegl-buffer-index.h
index 9c2f970..01c5d12 100644
--- a/gegl/buffer/gegl-buffer-index.h
+++ b/gegl/buffer/gegl-buffer-index.h
@@ -1,6 +1,6 @@
#ifndef __GEGL_BUFFER_INDEX_H
#define __GEGL_BUFFER_INDEX_H
-/* File format building blocks
+/* File format building blocks
GeglBuffer on disk representation
=================================
@@ -38,11 +38,11 @@ GeglBuffer on disk representation
*/
typedef struct {
gchar magic[4]; /* - a 4 byte identifier */
- guint32 flags; /* the header flags is used to encode state and revision
+ guint32 flags; /* the header flags is used to encode state and revision
*/
guint64 next; /* offset to first GeglBufferBlock */
- guint32 tile_width;
+ guint32 tile_width;
guint32 tile_height;
guint16 bytes_per_pixel;
@@ -87,7 +87,7 @@ typedef struct {
GeglBufferBlock block; /* The block definition for this tile entry */
guint64 offset; /* offset into file for this tile */
gint32 x; /* upperleft of tile % tile_width coordinates */
- gint32 y;
+ gint32 y;
gint32 z; /* mipmap subdivision level of tile (0=100%) */
diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c
index 86f01e7..e0f8681 100644
--- a/gegl/buffer/gegl-buffer-iterator.c
+++ b/gegl/buffer/gegl-buffer-iterator.c
@@ -64,8 +64,8 @@ typedef struct GeglBufferIterators
{
/* current region of interest */
gint length; /* length of current data in pixels */
- gpointer data[GEGL_BUFFER_MAX_ITERATORS];
- GeglRectangle roi[GEGL_BUFFER_MAX_ITERATORS];
+ gpointer data[GEGL_BUFFER_MAX_ITERATORS];
+ GeglRectangle roi[GEGL_BUFFER_MAX_ITERATORS];
/* the following is private: */
gint iterators;
@@ -74,8 +74,8 @@ typedef struct GeglBufferIterators
const Babl *format [GEGL_BUFFER_MAX_ITERATORS];
GeglBuffer *buffer [GEGL_BUFFER_MAX_ITERATORS];
guint flags [GEGL_BUFFER_MAX_ITERATORS];
- gpointer buf [GEGL_BUFFER_MAX_ITERATORS];
- GeglBufferTileIterator i[GEGL_BUFFER_MAX_ITERATORS];
+ gpointer buf [GEGL_BUFFER_MAX_ITERATORS];
+ GeglBufferTileIterator i[GEGL_BUFFER_MAX_ITERATORS];
} GeglBufferIterators;
@@ -95,7 +95,7 @@ static gboolean gegl_buffer_scan_compatible (GeglBuffer *bufferA,
GeglBuffer *bufferB,
gint xB,
gint yB)
-{
+{
if (bufferA->tile_storage->tile_width !=
bufferB->tile_storage->tile_width)
return FALSE;
@@ -292,7 +292,7 @@ gegl_buffer_iterator_add (GeglBufferIterator *iterator,
}
i->buf[self] = NULL;
-
+
if (i->format[self] == i->buffer[self]->format)
{
i->flags[self] |= GEGL_BUFFER_FORMAT_COMPATIBLE;
@@ -445,11 +445,11 @@ gboolean gegl_buffer_iterator_next (GeglBufferIterator *iterator)
if (res != result)
{
g_print ("%i==%i != 0==%i\n", no, res, result);
- }
+ }
g_assert (res == result);
- if ((i->flags[no] & GEGL_BUFFER_FORMAT_COMPATIBLE) &&
- i->roi[no].width == i->i[no].buffer->tile_storage->tile_width
+ if ((i->flags[no] & GEGL_BUFFER_FORMAT_COMPATIBLE) &&
+ i->roi[no].width == i->i[no].buffer->tile_storage->tile_width
)
{
/* direct access */
@@ -474,7 +474,7 @@ gboolean gegl_buffer_iterator_next (GeglBufferIterator *iterator)
}
}
else
- {
+ {
/* we copy the roi from iterator 0 */
i->roi[no] = i->roi[0];
i->roi[no].x += (i->rect[no].x-i->rect[0].x);
@@ -533,7 +533,7 @@ gboolean gegl_buffer_iterator_next (GeglBufferIterator *iterator)
}
GeglBufferIterator *gegl_buffer_iterator_new (GeglBuffer *buffer,
- const GeglRectangle *roi,
+ const GeglRectangle *roi,
const Babl *format,
guint flags)
{
diff --git a/gegl/buffer/gegl-buffer-iterator.h b/gegl/buffer/gegl-buffer-iterator.h
index ca284a7..68b2619 100644
--- a/gegl/buffer/gegl-buffer-iterator.h
+++ b/gegl/buffer/gegl-buffer-iterator.h
@@ -52,7 +52,7 @@ typedef struct GeglBufferIterator
* buffers pixels.
*/
GeglBufferIterator * gegl_buffer_iterator_new (GeglBuffer *buffer,
- const GeglRectangle *roi,
+ const GeglRectangle *roi,
const Babl *format,
guint flags);
@@ -74,7 +74,7 @@ GeglBufferIterator * gegl_buffer_iterator_new (GeglBuffer *buffer,
*/
gint gegl_buffer_iterator_add (GeglBufferIterator *iterator,
GeglBuffer *buffer,
- const GeglRectangle *roi,
+ const GeglRectangle *roi,
const Babl *format,
guint flags);
diff --git a/gegl/buffer/gegl-buffer-linear.c b/gegl/buffer/gegl-buffer-linear.c
index 14f4cee..739fc16 100644
--- a/gegl/buffer/gegl-buffer-linear.c
+++ b/gegl/buffer/gegl-buffer-linear.c
@@ -82,7 +82,7 @@ gegl_buffer_linear_new_from_data (const gpointer data,
buffer = gegl_buffer_linear_new2 (extent, format, rowstride);
{
- GeglTile *tile = gegl_tile_new_bare ();
+ GeglTile *tile = gegl_tile_new_bare ();
tile->tile_storage = buffer->tile_storage;
tile->x = 0;
diff --git a/gegl/buffer/gegl-buffer-load.c b/gegl/buffer/gegl-buffer-load.c
index ff31cec..6916ee2 100644
--- a/gegl/buffer/gegl-buffer-load.c
+++ b/gegl/buffer/gegl-buffer-load.c
@@ -199,7 +199,7 @@ static GeglBufferItem *read_block (int i,
#if HAVE_GIO
byte_read += g_input_stream_read (i, &block, sizeof (GeglBufferBlock), NULL, NULL);
-#else
+#else
{
ssize_t sz_read = read (i, &block, sizeof (GeglBufferBlock));
if(sz_read != -1)
@@ -213,7 +213,7 @@ static GeglBufferItem *read_block (int i,
{
case GEGL_FLAG_TILE:
case GEGL_FLAG_FREE_TILE:
- own_size = sizeof (GeglBufferTile);
+ own_size = sizeof (GeglBufferTile);
break;
default:
g_warning ("skipping unknown type of entry flags=%i", block.flags);
@@ -323,7 +323,6 @@ gegl_buffer_load (const gchar *path)
GeglBuffer *ret;
LoadInfo *info = g_slice_new0 (LoadInfo);
-
info->path = g_strdup (path);
#if HAVE_GIO
diff --git a/gegl/buffer/gegl-buffer-save.c b/gegl/buffer/gegl-buffer-save.c
index faccd39..1529594 100644
--- a/gegl/buffer/gegl-buffer-save.c
+++ b/gegl/buffer/gegl-buffer-save.c
@@ -110,7 +110,7 @@ static gsize write_block (SaveInfo *info,
ret = g_output_stream_write (info->o, info->in_holding, info->in_holding->length, NULL, NULL);
#else
ret = write (info->o, info->in_holding, info->in_holding->length);
- if (ret == -1)
+ if (ret == -1)
ret = 0;
#endif
info->offset += ret;
@@ -205,7 +205,7 @@ gegl_buffer_header_init (GeglBufferHeader *header,
{
gchar buf[64] = { 0, };
- g_snprintf (buf, 64, "%s%c\n%iÃ?%i %ibpp\n%ix%i\n\n\n\n\n\n\n\n\n",
+ g_snprintf (buf, 64, "%s%c\n%iÃ?%i %ibpp\n%ix%i\n\n\n\n\n\n\n\n\n",
babl_get_name (format), 0,
header->tile_width,
header->tile_height,
@@ -223,7 +223,7 @@ gegl_buffer_save (GeglBuffer *buffer,
{
SaveInfo *info = g_slice_new0 (SaveInfo);
- glong prediction = 0;
+ glong prediction = 0;
gint bpp;
gint tile_width;
gint tile_height;
@@ -384,7 +384,7 @@ gegl_buffer_save (GeglBuffer *buffer,
#if HAVE_GIO
info->offset += g_output_stream_write (info->o, data, info->tile_size, NULL, NULL);
#else
- {
+ {
ssize_t ret = write (info->o, data, info->tile_size);
if (ret != -1)
info->offset += ret;
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 30dca31..6983186 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -902,7 +902,7 @@ gegl_buffer_get_alloc_stack (void)
char **function_names = NULL;
int i = 0;
int result_size = 0;
-
+
n_functions = backtrace (functions, MAX_N_FUNCTIONS);
function_names = backtrace_symbols (functions, n_functions);
@@ -1173,7 +1173,7 @@ gegl_tile_storage_new_cached (gint tile_width, gint tile_height,
item->tile_height = tile_height;
item->babl_fmt = babl_fmt;
- if (use_ram ||
+ if (use_ram ||
!gegl_config()->swap ||
g_str_equal (gegl_config()->swap, "RAM") ||
g_str_equal (gegl_config()->swap, "ram"))
diff --git a/gegl/buffer/gegl-buffer.h b/gegl/buffer/gegl-buffer.h
index 8432acb..b4944fc 100644
--- a/gegl/buffer/gegl-buffer.h
+++ b/gegl/buffer/gegl-buffer.h
@@ -262,7 +262,7 @@ void gegl_buffer_set (GeglBuffer *buffer,
* Get the native babl format of the buffer.
*
* Returns: the babl format used for storing pixels in the buffer.
- *
+ *
*/
const Babl *gegl_buffer_get_format (GeglBuffer *buffer);
@@ -398,7 +398,7 @@ GeglBuffer *gegl_buffer_linear_new (const GeglRectangle *extent,
*
* Creates a GeglBuffer backed by a linear memory buffer that already exists,
* of the given @extent in the specified @format. babl_format ("R'G'B'A u8")
- * for instance to make a normal 8bit buffer.
+ * for instance to make a normal 8bit buffer.
*
* Returns: a GeglBuffer that can be used as any other GeglBuffer.
*/
diff --git a/gegl/buffer/gegl-id-pool.c b/gegl/buffer/gegl-id-pool.c
index 5b8b8ec..53de75f 100644
--- a/gegl/buffer/gegl-id-pool.c
+++ b/gegl/buffer/gegl-id-pool.c
@@ -44,7 +44,7 @@ gegl_id_pool_new (guint initial_size)
self = g_slice_new (GeglIDPool);
- self->array = g_array_sized_new (FALSE, FALSE,
+ self->array = g_array_sized_new (FALSE, FALSE,
sizeof (gpointer), initial_size);
self->free_ids = NULL;
return self;
diff --git a/gegl/buffer/gegl-id-pool.h b/gegl/buffer/gegl-id-pool.h
index 47f485c..8a491cf 100644
--- a/gegl/buffer/gegl-id-pool.h
+++ b/gegl/buffer/gegl-id-pool.h
@@ -1,4 +1,4 @@
-/* GEGL -
+/* GEGL -
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/gegl/buffer/gegl-region.h b/gegl/buffer/gegl-region.h
index bfe5a61..9a1d33a 100644
--- a/gegl/buffer/gegl-region.h
+++ b/gegl/buffer/gegl-region.h
@@ -83,7 +83,7 @@ GeglRegion * gegl_region_copy (const GeglRegion *region);
GeglRegion * gegl_region_rectangle (const GeglRectangle *rectangle);
void gegl_region_destroy (GeglRegion *region);
-void gegl_region_get_clipbox (GeglRegion *region,
+void gegl_region_get_clipbox (GeglRegion *region,
GeglRectangle *rectangle);
void gegl_region_get_rectangles (GeglRegion *region,
GeglRectangle **rectangles,
diff --git a/gegl/buffer/gegl-tile-backend-file.c b/gegl/buffer/gegl-tile-backend-file.c
index 299c102..0d97151 100644
--- a/gegl/buffer/gegl-tile-backend-file.c
+++ b/gegl/buffer/gegl-tile-backend-file.c
@@ -87,7 +87,7 @@ struct _GeglTileBackendFile
* at all times to be able to keep track of the ->next offsets in
* the blocks.
*/
- GeglBufferBlock *in_holding;
+ GeglBufferBlock *in_holding;
/* loading buffer */
GList *tiles;
diff --git a/gegl/buffer/gegl-tile-backend-tiledir.c b/gegl/buffer/gegl-tile-backend-tiledir.c
index d05adc1..1fc08c9 100644
--- a/gegl/buffer/gegl-tile-backend-tiledir.c
+++ b/gegl/buffer/gegl-tile-backend-tiledir.c
@@ -101,10 +101,10 @@ gio_entry_write (GeglTileBackendTileDir *gio,
gsize bytes_written;
file = make_tile_file (gio, entry->x, entry->y, entry->z);
- o = g_file_replace (file, NULL, FALSE,
+ o = g_file_replace (file, NULL, FALSE,
G_FILE_CREATE_NONE, NULL, NULL);
- g_output_stream_write_all (G_OUTPUT_STREAM (o), source, tile_size,
+ g_output_stream_write_all (G_OUTPUT_STREAM (o), source, tile_size,
&bytes_written, NULL, NULL);
g_assert (bytes_written == tile_size);
g_output_stream_close (G_OUTPUT_STREAM (o), NULL, NULL);
@@ -213,7 +213,7 @@ exist_tile (GeglTileSource *store,
gboolean found = FALSE;
file = make_tile_file (gio, x, y, z);
- file_info = g_file_query_info (file, "standard::*", G_FILE_QUERY_INFO_NONE,
+ file_info = g_file_query_info (file, "standard::*", G_FILE_QUERY_INFO_NONE,
NULL, NULL);
if (file_info)
diff --git a/gegl/buffer/gegl-tile-handler-cache.c b/gegl/buffer/gegl-tile-handler-cache.c
index 76f1b80..c576425 100644
--- a/gegl/buffer/gegl-tile-handler-cache.c
+++ b/gegl/buffer/gegl-tile-handler-cache.c
@@ -35,7 +35,7 @@
*/
typedef struct CacheItem
-{
+{
GeglTileHandlerCache *handler; /* The specific handler that cached this item*/
GeglTile *tile; /* The tile */
@@ -341,7 +341,7 @@ static gboolean
gegl_tile_handler_cache_trim (GeglTileHandlerCache *cache)
{
CacheItem *last_writable;
-
+
last_writable = g_queue_pop_tail (cache_queue);
if (last_writable != NULL)
diff --git a/gegl/buffer/gegl-tile-handler-chain.c b/gegl/buffer/gegl-tile-handler-chain.c
index ec9a43c..bc847a9 100644
--- a/gegl/buffer/gegl-tile-handler-chain.c
+++ b/gegl/buffer/gegl-tile-handler-chain.c
@@ -68,7 +68,7 @@ gegl_tile_handler_chain_dispose (GObject *object)
*/
chain = tile_handler_chain->chain;
tile_handler_chain->chain = NULL;
-
+
iter = chain;
while (iter)
{
diff --git a/gegl/buffer/gegl-tile-handler-log.c b/gegl/buffer/gegl-tile-handler-log.c
index 58fc1d0..3d58767 100644
--- a/gegl/buffer/gegl-tile-handler-log.c
+++ b/gegl/buffer/gegl-tile-handler-log.c
@@ -62,11 +62,11 @@ gegl_tile_handler_log_command (GeglTileSource *gegl_tile_source,
break;
default:
if (result)
- g_print ("(%s %p %p %i·%i·%i â??%p)",
+ g_print ("(%s %p %p %i·%i·%i â??%p)",
commands[command], GINT_TO_POINTER(GPOINTER_TO_INT(gegl_tile_source)&0xffff), GINT_TO_POINTER(GPOINTER_TO_INT(data)&0xffff), x, y, z,
result);
else
- g_print ("(%s %p %p %i·%i·%i �)",
+ g_print ("(%s %p %p %i·%i·%i �)",
commands[command], GINT_TO_POINTER(GPOINTER_TO_INT(gegl_tile_source)&0xffff), data, x, y, z);
}
return result;
diff --git a/gegl/buffer/gegl-tile-handler-zoom.c b/gegl/buffer/gegl-tile-handler-zoom.c
index 732b4fc..c94cb73 100644
--- a/gegl/buffer/gegl-tile-handler-zoom.c
+++ b/gegl/buffer/gegl-tile-handler-zoom.c
@@ -277,7 +277,7 @@ get_tile (GeglTileSource *gegl_tile_source,
set_half (tile, source_tile[i][j], tile_width, tile_height, format, i, j);
gegl_tile_unref (source_tile[i][j]);
}
- else
+ else
{
set_blank (tile, tile_width, tile_height, format, i, j);
}
diff --git a/gegl/buffer/gegl-tile-source.c b/gegl/buffer/gegl-tile-source.c
index 3f56651..8b759b6 100644
--- a/gegl/buffer/gegl-tile-source.c
+++ b/gegl/buffer/gegl-tile-source.c
@@ -37,7 +37,7 @@ gegl_tile_source_command_eek (GeglTileSource *gegl_tile_source,
static void
gegl_tile_source_class_init (GeglTileSourceClass *klass)
-{
+{
}
static void
diff --git a/gegl/buffer/gegl-tile.c b/gegl/buffer/gegl-tile.c
index 6215025..79ac438 100644
--- a/gegl/buffer/gegl-tile.c
+++ b/gegl/buffer/gegl-tile.c
@@ -208,11 +208,11 @@ _gegl_tile_void_pyramid (GeglTileSource *source,
static void
gegl_tile_void_pyramid (GeglTile *tile)
{
- if (tile->tile_storage &&
+ if (tile->tile_storage &&
tile->tile_storage->seen_zoom &&
tile->z == 0) /* we only accepting voiding the base level */
{
- _gegl_tile_void_pyramid (GEGL_TILE_SOURCE (tile->tile_storage),
+ _gegl_tile_void_pyramid (GEGL_TILE_SOURCE (tile->tile_storage),
tile->x/2,
tile->y/2,
tile->z+1);
@@ -276,7 +276,7 @@ gboolean gegl_tile_store (GeglTile *tile)
tile);
}
-/* for internal use, a macro poking directly at the data will be faster
+/* for internal use, a macro poking directly at the data will be faste
*/
guchar *gegl_tile_get_data (GeglTile *tile)
{
diff --git a/gegl/gegl-c.c b/gegl/gegl-c.c
index e7a70c1..3d94ca6 100644
--- a/gegl/gegl-c.c
+++ b/gegl/gegl-c.c
@@ -50,7 +50,7 @@ gegl_graph (GeglNode *node)
if (gegl_node_get_pad (node, "output"))
{
GeglNode *outproxynop = gegl_node_get_output_proxy (graph, "output");
- gegl_node_connect_to (node, "output", outproxynop, "input");
+ gegl_node_connect_to (node, "output", outproxynop, "input");
}
gegl_graph_adopt (graph, node);
return graph;
diff --git a/gegl/gegl-chant.h b/gegl/gegl-chant.h
index de5cf28..b508bdb 100644
--- a/gegl/gegl-chant.h
+++ b/gegl/gegl-chant.h
@@ -664,14 +664,14 @@ gegl_chant_constructor (GType type,
/* create dummy colors and vectors */
properties = GEGL_CHANT_PROPERTIES (obj);
-#define gegl_chant_int(name, nick, min, max, def, blurb)
-#define gegl_chant_double(name, nick, min, max, def, blurb)
-#define gegl_chant_boolean(name, nick, def, blurb)
-#define gegl_chant_string(name, nick, def, blurb)
-#define gegl_chant_file_path(name, nick, def, blurb)
-#define gegl_chant_multiline(name, nick, def, blurb)
-#define gegl_chant_object(name, nick, blurb)
-#define gegl_chant_pointer(name, nick, blurb)
+#define gegl_chant_int(name, nick, min, max, def, blurb)
+#define gegl_chant_double(name, nick, min, max, def, blurb)
+#define gegl_chant_boolean(name, nick, def, blurb)
+#define gegl_chant_string(name, nick, def, blurb)
+#define gegl_chant_file_path(name, nick, def, blurb)
+#define gegl_chant_multiline(name, nick, def, blurb)
+#define gegl_chant_object(name, nick, blurb)
+#define gegl_chant_pointer(name, nick, blurb)
#define gegl_chant_color(name, nick, def, blurb) \
if (properties->name == NULL) \
{properties->name = gegl_color_new(def?def:"black");}
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 8c61137..b985b97 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -42,13 +42,13 @@
static HMODULE hLibGeglModule = NULL;
/* DllMain prototype */
-BOOL WINAPI DllMain (HINSTANCE hinstDLL,
- DWORD fdwReason,
+BOOL WINAPI DllMain (HINSTANCE hinstDLL,
+ DWORD fdwReason,
LPVOID lpvReserved);
BOOL WINAPI
-DllMain (HINSTANCE hinstDLL,
- DWORD fdwReason,
+DllMain (HINSTANCE hinstDLL,
+ DWORD fdwReason,
LPVOID lpvReserved)
{
hLibGeglModule = hinstDLL;
diff --git a/gegl/gegl-matrix.c b/gegl/gegl-matrix.c
index 5b9c73c..e7c9c69 100644
--- a/gegl/gegl-matrix.c
+++ b/gegl/gegl-matrix.c
@@ -111,7 +111,7 @@ gegl_matrix3_is_translate (GeglMatrix3 *matrix)
}
void
-gegl_matrix3_copy_into (GeglMatrix3 *dst,
+gegl_matrix3_copy_into (GeglMatrix3 *dst,
GeglMatrix3 *src)
{
memcpy (dst->coeff [0], src->coeff [0], 3 * sizeof (gdouble));
diff --git a/gegl/gegl-matrix.h b/gegl/gegl-matrix.h
index b8be24f..58903a0 100644
--- a/gegl/gegl-matrix.h
+++ b/gegl/gegl-matrix.h
@@ -101,7 +101,7 @@ gboolean gegl_matrix3_is_translate (GeglMatrix3 *matrix);
*
* Copies the matrix in @src into @dst.
*/
-void gegl_matrix3_copy_into (GeglMatrix3 *dst,
+void gegl_matrix3_copy_into (GeglMatrix3 *dst,
GeglMatrix3 *src);
/**
@@ -145,7 +145,7 @@ void gegl_matrix3_multiply (GeglMatrix3 *left,
* @matrix: a #GeglMatrix
* @x: x coordinate of new origin
* @y: y coordinate of new origin.
- *
+ *
* Hmm not quite sure what this does.
*
*/
@@ -159,7 +159,7 @@ void gegl_matrix3_originate (GeglMatrix3 *matrix,
* @matrix: a #GeglMatrix
* @x: pointer to an x coordinate
* @y: pointer to an y coordinate
- *
+ *
* transforms the coordinates provided in @x and @y and changes to the
* coordinates gotten when the transformed with the matrix.
*
diff --git a/gegl/gegl-utils.c b/gegl/gegl-utils.c
index 8df8914..38250ad 100644
--- a/gegl/gegl-utils.c
+++ b/gegl/gegl-utils.c
@@ -233,7 +233,7 @@
/* utility call that makes sure allocations are 16 byte aligned.
* making RGBA float buffers have aligned access for pixels.
- */
+ */
gpointer gegl_malloc (gsize size)
{
gchar *mem;
diff --git a/gegl/gegl-xml.c b/gegl/gegl-xml.c
index 973afc3..51cf485 100644
--- a/gegl/gegl-xml.c
+++ b/gegl/gegl-xml.c
@@ -863,7 +863,7 @@ serialize_properties (SerializeState *ss,
GeglPath *path;
gegl_node_get (node, properties[i]->name, &path, NULL);
xml_param_start (ss, indent + 2, properties[i]->name);
- svg_path = gegl_path_to_string (path);
+ svg_path = gegl_path_to_string (path);
g_string_append (ss->buf, svg_path);
xml_param_end (ss);
diff --git a/gegl/gegl.h b/gegl/gegl.h
index 10d7d92..c4d8af5 100644
--- a/gegl/gegl.h
+++ b/gegl/gegl.h
@@ -858,7 +858,7 @@ GeglConfig * gegl_config (void);
/**
* gegl_node:
* @op_type: the type of operation to create
- * @first_property_name:
+ * @first_property_name:
* @...:
*
* Construct a GEGL node, connecting it to needed input nodes. The
diff --git a/gegl/graph/gegl-node.c b/gegl/graph/gegl-node.c
index 96cc8e3..9fa3973 100644
--- a/gegl/graph/gegl-node.c
+++ b/gegl/graph/gegl-node.c
@@ -928,7 +928,7 @@ gegl_node_blit (GeglNode *self,
threads = gegl_config ()->threads;
if (threads > GEGL_MAX_THREADS)
threads = 1;
-
+
if (pool == NULL)
{
pool = g_thread_pool_new (spawnrender, NULL, threads, TRUE, NULL);
@@ -1053,7 +1053,7 @@ gegl_node_blit (GeglNode *self,
{
GeglCache *cache = gegl_node_get_cache (self);
if (!(flags & GEGL_BLIT_DIRTY))
- {
+ {
if (!self->priv->processor)
self->priv->processor = gegl_node_new_processor (self, roi);
gegl_processor_set_rectangle (self->priv->processor, roi);
@@ -1278,7 +1278,7 @@ gegl_node_set_operation_object (GeglNode *self,
gegl_node_disconnect_sinks (self);
/* Delete all the pads from the previous operation */
- while ((old_pads = gegl_node_get_pads (self)) != NULL)
+ while ((old_pads = gegl_node_get_pads (self)) != NULL)
{
gegl_node_remove_pad (self, old_pads->data);
}
diff --git a/gegl/operation/gegl-extension-handler.c b/gegl/operation/gegl-extension-handler.c
index 0150911..354b277 100644
--- a/gegl/operation/gegl-extension-handler.c
+++ b/gegl/operation/gegl-extension-handler.c
@@ -36,7 +36,6 @@ gegl_extension_handler_register_util (GHashTable **handlers,
g_hash_table_insert (*handlers, ext, g_strdup (handler));
}
-
void
gegl_extension_handler_register (const gchar *extension,
diff --git a/gegl/operation/gegl-operation-context.c b/gegl/operation/gegl-operation-context.c
index c75336b..d2dd1be 100644
--- a/gegl/operation/gegl-operation-context.c
+++ b/gegl/operation/gegl-operation-context.c
@@ -196,7 +196,7 @@ gegl_operation_context_add_value (GeglOperationContext *self,
{
Property *property = NULL;
GSList *found;
-
+
found = g_slist_find_custom (self->property, property_name, lookup_property);
if (found)
@@ -255,7 +255,7 @@ gegl_operation_context_take_object (GeglOperationContext *context,
{
GParamSpec *pspec;
- /* FIXME: check that there isn't already an existing
+ /* FIXME: check that there isn't already an existing
* output object/value set?
*/
@@ -310,7 +310,7 @@ gegl_operation_context_get_source (GeglOperationContext *context,
{
GeglBuffer *real_input;
GeglBuffer *input;
-
+
real_input = GEGL_BUFFER (gegl_operation_context_get_object (context, padname));
if (!real_input)
return NULL;
diff --git a/gegl/operation/gegl-operation-filter.c b/gegl/operation/gegl-operation-filter.c
index d720fbe..978977c 100644
--- a/gegl/operation/gegl-operation-filter.c
+++ b/gegl/operation/gegl-operation-filter.c
@@ -48,7 +48,7 @@ static void set_property (GObject *gobject,
const GValue *value,
GParamSpec *pspec);
-static gboolean gegl_operation_filter_process
+static gboolean gegl_operation_filter_process
(GeglOperation *operation,
GeglOperationContext *context,
const gchar *output_prop,
diff --git a/gegl/operation/gegl-operation-point-composer.c b/gegl/operation/gegl-operation-point-composer.c
index 728bd80..15f5352 100644
--- a/gegl/operation/gegl-operation-point-composer.c
+++ b/gegl/operation/gegl-operation-point-composer.c
@@ -29,7 +29,7 @@
#include "graph/gegl-pad.h"
#include <string.h>
-static gboolean gegl_operation_point_composer_process
+static gboolean gegl_operation_point_composer_process
(GeglOperation *operation,
GeglBuffer *input,
GeglBuffer *aux,
@@ -106,7 +106,7 @@ gegl_operation_composer_process2 (GeglOperation *operation,
}
else
output = gegl_operation_context_get_target (context, "output");
-
+
{
gboolean done = FALSE;
diff --git a/gegl/operation/gegl-operation-point-composer.h b/gegl/operation/gegl-operation-point-composer.h
index 0649e60..e434434 100644
--- a/gegl/operation/gegl-operation-point-composer.h
+++ b/gegl/operation/gegl-operation-point-composer.h
@@ -49,7 +49,7 @@ struct _GeglOperationPointComposerClass
void *out,
glong samples, /* number of samples */
const GeglRectangle *roi /* rectangular region in output buffer */
- );
+ );
};
diff --git a/gegl/operation/gegl-operation-point-composer3.c b/gegl/operation/gegl-operation-point-composer3.c
index 904045b..b7fe8d8 100644
--- a/gegl/operation/gegl-operation-point-composer3.c
+++ b/gegl/operation/gegl-operation-point-composer3.c
@@ -29,7 +29,7 @@
#include "graph/gegl-pad.h"
#include <string.h>
-static gboolean gegl_operation_point_composer3_process
+static gboolean gegl_operation_point_composer3_process
(GeglOperation *operation,
GeglBuffer *input,
GeglBuffer *aux,
@@ -165,7 +165,7 @@ gegl_operation_point_composer3_process (GeglOperation *operation,
if (aux2)
{
gint bar = gegl_buffer_iterator_add (i, aux2, result, aux2_format, GEGL_BUFFER_READ);
-
+
while (gegl_buffer_iterator_next (i))
{
point_composer3_class->process (operation, i->data[read], i->data[foo], i->data[bar], i->data[0], i->length, &(i->roi[0]));
diff --git a/gegl/operation/gegl-operation-point-composer3.h b/gegl/operation/gegl-operation-point-composer3.h
index c7a0ddc..5fe5c01 100644
--- a/gegl/operation/gegl-operation-point-composer3.h
+++ b/gegl/operation/gegl-operation-point-composer3.h
@@ -50,7 +50,7 @@ struct _GeglOperationPointComposer3Class
void *out,
glong samples, /* number of samples */
const GeglRectangle *roi /* rectangular region in output buffer */
- );
+ );
};
diff --git a/gegl/operation/gegl-operation-point-filter.c b/gegl/operation/gegl-operation-point-filter.c
index ae78da1..b53c726 100644
--- a/gegl/operation/gegl-operation-point-filter.c
+++ b/gegl/operation/gegl-operation-point-filter.c
@@ -104,12 +104,11 @@ gboolean gegl_can_do_inplace_processing (GeglOperation *operation,
GeglBuffer *input,
const GeglRectangle *result)
{
- if (!input ||
+ if (!input ||
GEGL_IS_CACHE (input))
return FALSE;
if (gegl_object_get_has_forked (input))
return FALSE;
-
if (input->format == gegl_operation_get_format (operation, "output") &&
gegl_rectangle_contains (gegl_buffer_get_extent (input), result))
diff --git a/gegl/operation/gegl-operation-point-render.c b/gegl/operation/gegl-operation-point-render.c
index 1626b39..74ab9fb 100644
--- a/gegl/operation/gegl-operation-point-render.c
+++ b/gegl/operation/gegl-operation-point-render.c
@@ -32,7 +32,7 @@
#include "gegl-buffer-private.h"
#include "gegl-tile-storage.h"
-static gboolean gegl_operation_point_render_process
+static gboolean gegl_operation_point_render_process
(GeglOperation *operation,
GeglBuffer *output,
const GeglRectangle *result);
@@ -95,7 +95,7 @@ gegl_operation_point_render_process (GeglOperation *operation,
if ((result->width > 0) && (result->height > 0))
{
- GeglBufferIterator *i = gegl_buffer_iterator_new (output, result, out_format, GEGL_BUFFER_WRITE);
+ GeglBufferIterator *i = gegl_buffer_iterator_new (output, result, out_format, GEGL_BUFFER_WRITE);
while (gegl_buffer_iterator_next (i))
point_render_class->process (operation, i->data[0], i->length, &i->roi[0]);
diff --git a/gegl/operation/gegl-operation-processors.c b/gegl/operation/gegl-operation-processors.c
index 728144d..c544aea 100644
--- a/gegl/operation/gegl-operation-processors.c
+++ b/gegl/operation/gegl-operation-processors.c
@@ -180,7 +180,7 @@ gegl_class_register_alternate_vfunc (GObjectClass *cclass,
* dispatching of arguments, not sure if
* this is portable C or not.
*/
-
+
/* Find a free slot for this one */
for (i=1; i<MAX_PROCESSOR; i++)
{
diff --git a/gegl/operation/gegl-operation-source.c b/gegl/operation/gegl-operation-source.c
index 8e830b7..5749a43 100644
--- a/gegl/operation/gegl-operation-source.c
+++ b/gegl/operation/gegl-operation-source.c
@@ -43,7 +43,7 @@ static void set_property (GObject *gobject,
guint prop_id,
const GValue *value,
GParamSpec *pspec);
-static gboolean gegl_operation_source_process
+static gboolean gegl_operation_source_process
(GeglOperation *operation,
GeglOperationContext *context,
const gchar *output_prop,
diff --git a/gegl/operation/gegl-operation-temporal.c b/gegl/operation/gegl-operation-temporal.c
index 532b736..ba5481d 100644
--- a/gegl/operation/gegl-operation-temporal.c
+++ b/gegl/operation/gegl-operation-temporal.c
@@ -83,7 +83,7 @@ gegl_operation_temporal_get_frame (GeglOperation *op,
"x", 0,
"y", 0,
NULL);
- return buffer;
+ return buffer;
}
static gboolean gegl_operation_temporal_process (GeglOperation *self,
diff --git a/gegl/operation/gegl-operation.h b/gegl/operation/gegl-operation.h
index bbeb2f7..f392014 100644
--- a/gegl/operation/gegl-operation.h
+++ b/gegl/operation/gegl-operation.h
@@ -49,7 +49,7 @@ struct _GeglOperation
/***
* GeglOperation:
- *
+ *
* All the image processing code in GEGL is implemented as GeglOperations,
* GEGL operations are implemented as GObject with a convenience API called
* chanting that abstracts away the boiler plater needed to generate introspectable
diff --git a/gegl/operation/gegl-operations.c b/gegl/operation/gegl-operations.c
index 75b32bb..b2b010b 100644
--- a/gegl/operation/gegl-operations.c
+++ b/gegl/operation/gegl-operations.c
@@ -232,7 +232,7 @@ gegl_operation_calc_need_rects (GeglOperation *operation,
{
const gchar *pad_name = gegl_pad_get_name (input_pads->data);
GeglRectangle rect;
- rect = gegl_operation_get_required_for_output (operation, pad_name, &request);
+ rect = gegl_operation_get_required_for_output (operation, pad_name, &request);
gegl_operation_set_need_rect (operation, context_id, pad_name, &rect);
}
diff --git a/gegl/process/gegl-eval-mgr.c b/gegl/process/gegl-eval-mgr.c
index 989aca1..a315c4f 100644
--- a/gegl/process/gegl-eval-mgr.c
+++ b/gegl/process/gegl-eval-mgr.c
@@ -165,7 +165,7 @@ gegl_eval_mgr_apply (GeglEvalMgr *self)
case NEED_CONTEXT_SETUP_TRAVERSAL:
gegl_visitor_reset (self->prepare_visitor);
- gegl_visitor_dfs_traverse (self->prepare_visitor, GEGL_VISITABLE (root));
+ gegl_visitor_dfs_traverse (self->prepare_visitor, GEGL_VISITABLE (root));
self->state = NEED_CONTEXT_SETUP_TRAVERSAL;
}
diff --git a/gegl/process/gegl-processor.c b/gegl/process/gegl-processor.c
index eaf85fa..4bd9598 100644
--- a/gegl/process/gegl-processor.c
+++ b/gegl/process/gegl-processor.c
@@ -118,7 +118,7 @@ gegl_processor_class_init (GeglProcessorClass *klass)
g_param_spec_int ("chunksize",
"chunksize",
"Size of chunks being rendered (larger chunks need more memory to do the processing).",
- 1, 1024 * 1024, gegl_config()->chunk_size,
+ 1, 1024 * 1024, gegl_config()->chunk_size,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
}
@@ -433,7 +433,7 @@ render_rectangle (GeglProcessor *processor)
if (dr->width > dr->height)
{
band_size = gegl_processor_get_band_size ( dr->width );
-
+
fragment->width = band_size;
dr->width -= band_size;
dr->x += band_size;
diff --git a/gegl/property-types/gegl-path.c b/gegl/property-types/gegl-path.c
index 986605a..383f9c4 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -135,7 +135,7 @@ static void copy_data (const GeglPathItem *src,
src_info = lookup_instruction_info(src->type);
- dst->type = src->type;
+ dst->type = src->type;
for (i=0;i<(src_info->n_items+1)/2;i++)
{
dst->point[i].x = src->point[i].x;
@@ -146,7 +146,7 @@ static void copy_data (const GeglPathItem *src,
void
-gegl_path_add_type (gchar type,
+gegl_path_add_type (gchar type,
gint n_items,
const gchar *name)
{
@@ -181,7 +181,7 @@ gegl_path_list_append_item (GeglPathList *head,
if (iter)
{
/* the +3 is padding, +1 was excpected to be sufficient */
- iter->next =
+ iter->next =
g_slice_alloc0 (sizeof (gpointer) + sizeof (gchar) + sizeof (gfloat)*2 *(info->n_items+3)/2);
iter->next->d.type = type;
iter = iter->next;
@@ -189,7 +189,7 @@ gegl_path_list_append_item (GeglPathList *head,
else /* creating new path */
{
/* the +3 is padding, +1 was excpected to be sufficient */
- head =
+ head =
g_slice_alloc0 (sizeof (gpointer) + sizeof (gchar) + sizeof (gfloat)*2 *(info->n_items+3)/2);
head->d.type = type;
iter=head;
@@ -229,7 +229,7 @@ flatten_rel_copy (GeglMatrix3 *matrix,
GeglPathList *newp;
InstructionInfo *info;
gint i;
-
+
head = gegl_path_list_append_item (head, self->d.type, &newp, NULL);
copy_data (&self->d, &newp->d);
info = lookup_instruction_info (self->d.type);
@@ -327,7 +327,7 @@ gegl_path_list_flatten (GeglMatrix3 *matrix,
if (!original)
return NULL;
-
+
for (iter=original; iter; iter=iter->next)
{
InstructionInfo *info = lookup_instruction_info (iter->d.type);
@@ -462,8 +462,6 @@ path_calc2 (GeglPathList *path,
GeglPathList *iter = path, *prev = NULL;
gfloat traveled = 0.0, next_pos = 0.0;
-
-
while (iter && !prev)
/* fetch the start point of the path */
{
@@ -477,7 +475,7 @@ path_calc2 (GeglPathList *path,
default :
break;
}
- iter = iter->next;
+ iter = iter->next;
}
while (iter)
@@ -544,10 +542,10 @@ static void path_calc_values (GeglPathList *path,
GeglPathList *iter = path;
gdouble length = path_get_length (path);
gfloat spacing = length / (num_samples-1);
-
+
gfloat traveled = 0, next_pos = 0, next_sample = 0;
gfloat x = 0, y = 0;
-
+
gint i=0;
while (iter)
@@ -579,7 +577,7 @@ static void path_calc_values (GeglPathList *path,
gfloat ratio = (next_sample - traveled) / (next_pos - traveled);
lerp (&spot, &a, &b, ratio);
-
+
xs[i]=spot.x;
ys[i]=spot.y;
@@ -796,8 +794,8 @@ void gegl_path_thaw (GeglPath *path)
gegl_path_emit_changed (path, NULL); /* expose a full changed */
}
-gegl_path_get_matrix (GeglPath *path,
- GeglMatrix3 *matrix)
+void gegl_path_get_matrix (GeglPath *path,
+ GeglMatrix3 *matrix)
{
GeglPathPrivate *priv = GEGL_PATH_GET_PRIVATE (path);
gegl_matrix3_copy_into (matrix, &priv->matrix);
@@ -1208,16 +1206,16 @@ static const gchar *parse_float_pair (const gchar *p,
while (*t && ((*t<'0' || *t > '9') && *t!='-')) t++;
if (!t)
return p;
- *x = g_ascii_strtod (t, &t);
+ *x = g_ascii_strtod (t, &t);
while (*t && ((*t<'0' || *t > '9') && *t!='-')) t++;
if (!t)
return p;
- *y = g_ascii_strtod (t, &t);
+ *y = g_ascii_strtod (t, &t);
return t;
}
-/* this code is generic and should also work for extensions providing
+/* this code is generic and should also work for extensions providing
* new knot types to the infrastructure
*/
gchar *
@@ -1247,10 +1245,10 @@ gegl_path_to_string (GeglPath *vector)
*eptr='\0';
if (*eptr=='.')
*eptr='\0';
-
+
/* FIXME: make this work better also for other odd count
* of n_items
- */
+ */
if (info->n_items>1)
{
g_string_append_printf (str, "%s,", buf);
@@ -1674,7 +1672,7 @@ gegl_path_append (GeglPath *self,
rect.y=y1;
rect.height = y0-y1;
}
-
+
if (priv->length_clean)
priv->length += len;
gegl_path_emit_changed (self, &rect);
@@ -1752,7 +1750,7 @@ gegl_path_closest_point (GeglPath *path,
gdouble dist;
if (iter->d.type == 'z')
continue;
- dist = gegl_path_closest_point (path,
+ dist = gegl_path_closest_point (path,
iter->d.point[0].x,
iter->d.point[0].y,
NULL, NULL, NULL);
@@ -1899,7 +1897,7 @@ void gegl_path_fill (GeglBuffer *buffer,
first_x = prev_x = xs[0] * horsub;
first_y = prev_y = ys[0] * versub;
-
+
/* saturate scanline intersection list */
for (i=1; i<samples; i++)
{
@@ -2069,7 +2067,7 @@ static void gegl_path_stamp (GeglBuffer *buffer,
* such */
s.buf = g_malloc (4*4* (roi.width + 2 ) * (roi.height + 2));
s.radius = radius;
- s.valid = TRUE;
+ s.valid = TRUE;
}
g_assert (s.buf);
diff --git a/gegl/property-types/gegl-path.h b/gegl/property-types/gegl-path.h
index 3d19097..4ca3400 100644
--- a/gegl/property-types/gegl-path.h
+++ b/gegl/property-types/gegl-path.h
@@ -75,7 +75,7 @@ GType gegl_path_get_type (void) G_GNUC_CONST;
* </p><pre>typedef struct GeglPathItem
* {
* gchar type;
- * Point point[4];
+ * Point point[4];
* } GeglPathItem;</pre></p>
*
*/
@@ -252,7 +252,7 @@ void gegl_path_calc_values (GeglPath *path,
/**
* gegl_path_get_bounds:
* @self: a #GeglPath.
- * @min_x: return location for minimum x coordinate
+ * @min_x: return location for minimum x coordinate
* @max_x: return location for maximum x coordinate
* @min_y: return location for minimum y coordinate
* @max_y: return location for maximum y coordinate
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]