[gedit] Move the implementation of gedit_debug()
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Move the implementation of gedit_debug()
- Date: Mon, 6 Feb 2012 13:16:19 +0000 (UTC)
commit ce0f99a428d30bc5fa356610a1c353730874f82a
Author: Daniel Trebbien <dtrebbien gmail com>
Date: Sun Feb 5 16:13:53 2012 -0500
Move the implementation of gedit_debug()
The order of the implementations of gedit_debug_init(), gedit_debug(),
and gedit_debug_message() in gedit-debug.c now matches the order of
declaration in gedit-debug.h.
gedit/gedit-debug.c | 46 +++++++++++++++++++++++-----------------------
1 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/gedit/gedit-debug.c b/gedit/gedit-debug.c
index 43cae51..607c4b0 100644
--- a/gedit/gedit-debug.c
+++ b/gedit/gedit-debug.c
@@ -99,6 +99,29 @@ out:
return;
}
+void gedit_debug (GeditDebugSection section,
+ const gchar *file,
+ gint line,
+ const gchar *function)
+{
+ if (G_UNLIKELY (debug & section))
+ {
+#ifdef ENABLE_PROFILING
+ gdouble seconds;
+
+ g_return_if_fail (timer != NULL);
+
+ seconds = g_timer_elapsed (timer, NULL);
+ g_print ("[%f (%f)] %s:%d (%s)\n",
+ seconds, seconds - last, file, line, function);
+ last = seconds;
+#else
+ g_print ("%s:%d (%s)\n", file, line, function);
+#endif
+ fflush (stdout);
+ }
+}
+
void
gedit_debug_message (GeditDebugSection section,
const gchar *file,
@@ -138,27 +161,4 @@ gedit_debug_message (GeditDebugSection section,
}
}
-void gedit_debug (GeditDebugSection section,
- const gchar *file,
- gint line,
- const gchar *function)
-{
- if (G_UNLIKELY (debug & section))
- {
-#ifdef ENABLE_PROFILING
- gdouble seconds;
-
- g_return_if_fail (timer != NULL);
-
- seconds = g_timer_elapsed (timer, NULL);
- g_print ("[%f (%f)] %s:%d (%s)\n",
- seconds, seconds - last, file, line, function);
- last = seconds;
-#else
- g_print ("%s:%d (%s)\n", file, line, function);
-#endif
- fflush (stdout);
- }
-}
-
/* ex:set ts=8 noet: */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]