[gegl] gegl: some minor syntax cleaning.



commit 25afca55395329e7927493bd91567e210d64f45c
Author: Jehan <jehan girinstud io>
Date:   Mon Nov 21 15:53:27 2016 +0100

    gegl: some minor syntax cleaning.
    
    Cleaning out a tab, some parameter and variable alignements, return
    type on its own line, some spaces added in declarations and comparisons.

 gegl/gegl-matrix.c |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/gegl/gegl-matrix.c b/gegl/gegl-matrix.c
index b4a1e52..4d57e38 100644
--- a/gegl/gegl-matrix.c
+++ b/gegl/gegl-matrix.c
@@ -216,7 +216,7 @@ gegl_matrix3_transform_point (GeglMatrix3 *matrix,
                               gdouble     *y)
 {
   gdouble xp, yp, w;
-  
+
   w = (*x * matrix->coeff [2][0] + *y * matrix->coeff [2][1] + matrix->coeff [2][2]);
 
   xp = (*x * matrix->coeff [0][0] + *y * matrix->coeff [0][1] + matrix->coeff [0][2]) / w;
@@ -227,7 +227,7 @@ gegl_matrix3_transform_point (GeglMatrix3 *matrix,
 }
 
 void
-gegl_matrix3_parse_string (GeglMatrix3  *matrix,
+gegl_matrix3_parse_string (GeglMatrix3 *matrix,
                            const gchar *string)
 {
   gegl_matrix3_identity (matrix);
@@ -238,7 +238,7 @@ gegl_matrix3_parse_string (GeglMatrix3  *matrix,
       gfloat b;
       if (!p) return;
       p++;
-      a = g_ascii_strtod(p, &p);
+      a = g_ascii_strtod (p, &p);
       if (!p) return;
       p = strchr (string, ',');
       if (!p) return;
@@ -271,20 +271,21 @@ gegl_matrix3_parse_string (GeglMatrix3  *matrix,
     }
 }
 
-gchar *gegl_matrix3_to_string (GeglMatrix3 *matrix)
+gchar *
+gegl_matrix3_to_string (GeglMatrix3 *matrix)
 {
-  gchar *res;
-  gchar  dstring[G_ASCII_DTOSTR_BUF_SIZE];
+  gchar   *res;
+  gchar    dstring[G_ASCII_DTOSTR_BUF_SIZE];
   GString *str = g_string_new ("matrix(");
-  gint i, j;
-  gint a=0;
+  gint     i, j;
+  gint     a = 0;
 
-  for (i=0;i<3;i++)
-    for (j=0;j<3;j++)
+  for (i = 0; i < 3; i++)
+    for (j = 0; j < 3; j++)
       {
-        if (a!=0)
+        if (a != 0)
           g_string_append (str, ",");
-        a=1;
+        a = 1;
         /* Do not use g_string_append_printf () or any other printf
          * function because they are locale dependent.
          */


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