summaryrefslogtreecommitdiff
path: root/irmp
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-02-22 06:38:19 +0100
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-07-18 15:25:46 +0200
commita9f2b88c3f74e0b776bfaee56402bb7682026a64 (patch)
treecb200e2e4df7e9032d66c65cdce2b14307460a15 /irmp
parent497d973027e3a9691b76f660c85400e4fe265773 (diff)
downloadlibsigrokdecode-a9f2b88c3f74e0b776bfaee56402bb7682026a64.tar.gz
libsigrokdecode-a9f2b88c3f74e0b776bfaee56402bb7682026a64.zip
irmp: address unbalanced preprocessor condition (PIC workaround)
The #else inside a multi line comment in combination with the excess yet commented #endif threw off my editor's syntax highlighting and parentheses matching. Use "#if 0" instead to disable the empty side of ANALYZE macros which some PIC compilers are said to not support. No change in behaviour.
Diffstat (limited to 'irmp')
-rw-r--r--irmp/irmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/irmp/irmp.c b/irmp/irmp.c
index f2e7f5a..c7a2fd9 100644
--- a/irmp/irmp.c
+++ b/irmp/irmp.c
@@ -627,15 +627,13 @@ static int silent;
static int time_counter;
static int verbose;
-/******************************* not every PIC compiler knows variadic macros :-(
-#else
+#elif 0 /* not every PIC compiler knows variadic macros :-( */
# define ANALYZE_PUTCHAR(a)
# define ANALYZE_ONLY_NORMAL_PUTCHAR(a)
# define ANALYZE_PRINTF(...)
# define ANALYZE_ONLY_NORMAL_PRINTF(...)
-# endif
# define ANALYZE_NEWLINE()
-*********************************/
+
#endif
#if IRMP_USE_CALLBACK == 1