[gnome-builder/wip/libide] libide: move declaration before definition



commit 8d7473f34342afea4a476015ee2f3766db117768
Author: Christian Hergert <christian hergert me>
Date:   Tue Mar 3 00:29:15 2015 -0800

    libide: move declaration before definition

 libide/ide.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/libide/ide.c b/libide/ide.c
index 9fb7cf9..490f3ff 100644
--- a/libide/ide.c
+++ b/libide/ide.c
@@ -42,6 +42,15 @@
 static gboolean     gProgramNameRead;
 static const gchar *gProgramName = "libide";
 
+#if defined (G_HAS_CONSTRUCTORS)
+# ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
+#  pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(ide_init_ctor)
+# endif
+G_DEFINE_CONSTRUCTOR(ide_init_ctor)
+#else
+# error Your platform/compiler is missing constructor support
+#endif
+
 const gchar *
 ide_get_program_name (void)
 {
@@ -143,12 +152,3 @@ ide_init_ctor (void)
 
   ggit_init ();
 }
-
-#if defined (G_HAS_CONSTRUCTORS)
-# ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
-#  pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(ide_init_ctor)
-# endif
-G_DEFINE_CONSTRUCTOR(ide_init_ctor)
-#else
-# error Your platform/compiler is missing constructor support
-#endif


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