gegl r1925 - in trunk: . bin



Author: neo
Date: Mon Jan 28 15:01:00 2008
New Revision: 1925
URL: http://svn.gnome.org/viewvc/gegl?rev=1925&view=rev

Log:
2008-01-28  Sven Neumann  <sven gimp org>

	* bin/gegl-store.c: formatting.


Modified:
   trunk/ChangeLog
   trunk/bin/gegl-store.c

Modified: trunk/bin/gegl-store.c
==============================================================================
--- trunk/bin/gegl-store.c	(original)
+++ trunk/bin/gegl-store.c	Mon Jan 28 15:01:00 2008
@@ -21,12 +21,14 @@
 #include "gegl-store.h"
 #include <string.h>
 
-GeglNode *gegl_children (GeglNode *item)
+GeglNode *
+gegl_children (GeglNode *item)
 {
   return gegl_node_get_producer (item, "aux", NULL);
 }
 
-GeglNode *gegl_next_sibling (GeglNode *item)
+GeglNode *
+gegl_next_sibling (GeglNode *item)
 {
   if (!strcmp (gegl_node_get_operation (item), "clone"))
     return NULL;
@@ -38,10 +40,10 @@
                    const gchar  *output_pad,
                    gchar       **input_pad_name)
 {
-  GeglNode   **nodes = NULL;
-  GeglNode    *ret=NULL;
+  GeglNode    **nodes = NULL;
+  GeglNode     *ret   = NULL;
   const gchar **pads;
-  gint       count = 0;
+  gint          count = 0;
 
   if (!node)
     return ret;
@@ -62,11 +64,12 @@
 }
 
 
-GeglNode *gegl_previous_sibling (GeglNode *item)
+GeglNode *
+gegl_previous_sibling (GeglNode *item)
 {
   GeglNode *node;
   gchar    *pad;
-  
+
   node = node_get_consumer (item, "output", &pad);
   if (node)
     {
@@ -80,7 +83,8 @@
   return node;
 }
 
-GeglNode *gegl_parent (GeglNode *item)
+GeglNode *
+gegl_parent (GeglNode *item)
 {
   GeglNode *iter = item;
 
@@ -92,20 +96,21 @@
     return NULL;
 
   {
-    gint n_consumers;
     GeglNode    **nodes;
     const gchar **pads;
+    gint          n_consumers;
 
     n_consumers = gegl_node_get_consumers (iter, "output", &nodes, &pads);
-    if (n_consumers >0 &&
+    if (n_consumers > 0 &&
         !strcmp (pads[0], "aux"))
       {
-        GeglNode *ret=nodes[0];
+        GeglNode *ret = nodes[0];
         g_free (nodes);
         g_free (pads);
         return ret;
       }
   }
+
   return NULL;
 }
 



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