From: Gerhard Sittig Date: Sat, 22 Feb 2020 05:38:19 +0000 (+0100) Subject: irmp: address unbalanced preprocessor condition (PIC workaround) X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=a9f2b88c3f74e0b776bfaee56402bb7682026a64;p=libsigrokdecode.git 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. --- 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