From 6b98856892708b53e015c312033f02f04c4ead2c Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari Date: Wed, 23 Jul 2014 13:08:04 +0530 Subject: [PATCH] put telexcc debug code inside a macro --- src/ccextractor.c | 2 ++ src/telxcc.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ccextractor.c b/src/ccextractor.c index e9a1ce9f..d97905dc 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -236,7 +236,9 @@ struct PMT_entry *PIDs_programs[65536]; int temp_debug=0; // This is a convenience variable used to enable/disable debug on variable conditions. Find references to understand. +#ifdef DEBUG_TELEXCC int main_telxcc (int argc, char *argv[]); +#endif LLONG process_raw_with_field (void); diff --git a/src/telxcc.c b/src/telxcc.c index 31efad9f..1c9cf018 100644 --- a/src/telxcc.c +++ b/src/telxcc.c @@ -1127,6 +1127,7 @@ void telxcc_close(void) } } +#ifdef DEBUG_TELXCC int main_telxcc (int argc, char *argv[]) { FILE *infile; @@ -1308,4 +1309,4 @@ int main_telxcc (int argc, char *argv[]) { return EXIT_SUCCESS; } - +#endif