[gnome-builder] libide: move declaration before definition
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: move declaration before definition
- Date: Mon, 23 Mar 2015 23:50:34 +0000 (UTC)
commit 1ccdfa0367964149b15b82dd0ea7f88aed5bdc80
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]