[beast: 10/28] BEAST: bstmain.cc: extract method main_sleep4gdb
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 10/28] BEAST: bstmain.cc: extract method main_sleep4gdb
- Date: Tue, 29 Dec 2015 19:01:46 +0000 (UTC)
commit 78373a6182d1c61010c88ea7cf2bb82c7703b47b
Author: Tim Janik <timj gnu org>
Date: Tue Dec 1 00:47:23 2015 +0100
BEAST: bstmain.cc: extract method main_sleep4gdb
Signed-off-by: Tim Janik <timj gnu org>
beast-gtk/bstmain.cc | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/beast-gtk/bstmain.cc b/beast-gtk/bstmain.cc
index 0090605..5d65c62 100644
--- a/beast-gtk/bstmain.cc
+++ b/beast-gtk/bstmain.cc
@@ -60,6 +60,7 @@ server_registration (SfiProxy server,
}
}
+static void main_sleep4gdb();
static void main_init_scripts();
static void main_init_dialogs();
static BstApp* main_open_files (int filesc, char **filesv);
@@ -208,15 +209,7 @@ main (int argc, char *argv[])
}
}
- /* debugging hook */
- const char *estring = g_getenv ("BEAST_SLEEP4GDB");
- if (estring && atoi (estring) > 0)
- {
- bst_splash_update_entity (beast_splash, "Debugging Hook");
- g_message ("going into sleep mode due to debugging request (pid=%u)", getpid ());
- g_usleep (2147483647);
- }
-
+ main_sleep4gdb();
main_init_scripts();
main_init_dialogs();
BstApp *app = main_open_files (argc - 1, &argv[1]);
@@ -232,6 +225,18 @@ main (int argc, char *argv[])
}
static void
+main_sleep4gdb()
+{
+ const char *estring = g_getenv ("BEAST_SLEEP4GDB");
+ if (estring && atoi (estring) > 0)
+ {
+ bst_splash_update_entity (beast_splash, "Debugging Hook");
+ g_message ("going into sleep mode due to debugging request (pid=%u)", getpid ());
+ g_usleep (2147483647);
+ }
+}
+
+static void
main_init_scripts()
{
/* register BSE scripts */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]