From a9f2b88c3f74e0b776bfaee56402bb7682026a64 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sat, 22 Feb 2020 06:38:19 +0100 Subject: 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. --- irmp/irmp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'irmp') 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 -- cgit v1.2.3-70-g09d2