[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] moved debug defines to libspeechd.c
From: |
Andrei Kholodnyi |
Subject: |
[PATCH 2/3] moved debug defines to libspeechd.c |
Date: |
Sat, 11 Sep 2010 11:51:01 +0200 |
---
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 ede727c..179972a 100644
--- a/src/c/api/libspeechd.c
+++ b/src/c/api/libspeechd.c
@@ -48,6 +48,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 8692540..dc95564 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); }
/* Arguments for spd_send_data() */
#define SPD_WAIT_REPLY 1 /* Wait for reply */
--
1.6.0.4
- [PATCH 1/3] added pkgconfig support, Andrei Kholodnyi, 2010/09/11
- [PATCH 2/3] moved debug defines to libspeechd.c,
Andrei Kholodnyi <=
- [PATCH 3/3] use pkg-config to detect dotconf, glib, gthread and gmodule, Andrei Kholodnyi, 2010/09/11
- [PATCH 3/3] use pkg-config to detect dotconf, glib, gthread and gmodule, Christopher Brannon, 2010/09/13
- [PATCH 3/3] use pkg-config to detect dotconf, glib, gthread and gmodule, Andrei Kholodnyi, 2010/09/13
- [PATCH 3/3] use pkg-config to detect dotconf, glib, gthread and gmodule, Christopher Brannon, 2010/09/15
- [PATCH 3/3] use pkg-config to detect dotconf, glib, gthread and gmodule, Andrei Kholodnyi, 2010/09/16
[PATCH 1/3] added pkgconfig support, Christopher Brannon, 2010/09/11