[gegl] tool/gen-loader: improve indentation/silence compiler warnings



commit 1e650bf8efa782b6f20006ceabcb1e891bc50b99
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Sep 21 13:22:03 2016 +0200

    tool/gen-loader: improve indentation/silence compiler warnings

 tools/gen-loader.sh |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/tools/gen-loader.sh b/tools/gen-loader.sh
index d10c418..a6b6f44 100755
--- a/tools/gen-loader.sh
+++ b/tools/gen-loader.sh
@@ -6,23 +6,26 @@ echo '#include <gegl-plugin.h>'
 for a in `grep GEGL_OP_NAME *.c | sed 's/.*NAME//'`;do echo "void gegl_op_"$a"_register_type(GTypeModule 
*module);" ;done
 
 echo 'static const GeglModuleInfo modinfo = { 
-  GEGL_MODULE_ABI_VERSION
-  };
+GEGL_MODULE_ABI_VERSION
+};
 
-  G_MODULE_EXPORT const GeglModuleInfo *
-  gegl_module_query (GTypeModule *module)
-  {
-            return &modinfo;
-    }
+const GeglModuleInfo * gegl_module_query (GTypeModule *module);
+gboolean gegl_module_register (GTypeModule *module);
 
-    G_MODULE_EXPORT gboolean
-    gegl_module_register (GTypeModule *module)
-    {
-            '
+G_MODULE_EXPORT const GeglModuleInfo *
+gegl_module_query (GTypeModule *module)
+{
+  return &modinfo;
+}
+
+G_MODULE_EXPORT gboolean
+gegl_module_register (GTypeModule *module)
+{'
 
 
 for a in `grep GEGL_OP_NAME *.c | sed 's/.*NAME//'`;do echo "  gegl_op_"$a"_register_type(module);" ;done
 
 
- echo ' return TRUE;}'
+ echo ' return TRUE;
+}'
 


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