speechd-discuss
[Top][All Lists]
Advanced

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

[PATCH 2/3] moved debug defines to libspeechd.c


From: Christopher Brannon
Subject: [PATCH 2/3] moved debug defines to libspeechd.c
Date: Wed, 15 Sep 2010 21:24:42 -0500

From: Andrei Kholodnyi <address@hidden>
To: address@hidden

Reviewed-by: Christopher Brannon <cmbrannon79 at gmail.com>
---
 src/c/api/libspeechd.c |    8 ++++++++
 src/c/api/libspeechd.h |    8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/c/api/libspeechd.c b/src/c/api/libspeechd.c
index 7ef94c2..82520e1 100644
--- a/src/c/api/libspeechd.c
+++ b/src/c/api/libspeechd.c
@@ -47,6 +47,14 @@
 /* Comment/uncomment to switch debugging on/off */
 // #define LIBSPEECHD_DEBUG 1
 
+#ifdef LIBSPEECHD_DEBUG
+/* Debugging */
+static FILE* spd_debug;
+#endif
+
+/* Unless there is an fatal error, it doesn't print anything */
+#define SPD_FATAL(msg) { printf("Fatal error (libspeechd) [%s:%d]:"msg, 
__FILE__, __LINE__); fflush(stdout); exit(EXIT_FAILURE); }
+
 /* --------------  Private functions headers ------------------------*/
 
 #ifdef LIBSPEECHD_DEBUG
diff --git a/src/c/api/libspeechd.h b/src/c/api/libspeechd.h
index c88f89f..62a8348 100644
--- a/src/c/api/libspeechd.h
+++ b/src/c/api/libspeechd.h
@@ -32,14 +32,6 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-    
-#ifdef LIBSPEECHD_DEBUG
-/* Debugging */
-FILE* spd_debug;
-#endif
-
-/* Unless there is an fatal error, it doesn't print anything */
-#define SPD_FATAL(msg) { printf("Fatal error (libspeechd) [%s:%d]:"msg, 
__FILE__, __LINE__); fflush(stdout); exit(EXIT_FAILURE); }
 /* Speech Dispatcher's default port for inet communication */
 #define SPEECHD_DEFAULT_PORT 6560
 
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]