]> sigrok.org Git - libsigrokdecode.git/commitdiff
irmp: address unbalanced preprocessor condition (PIC workaround)
authorGerhard Sittig <redacted>
Sat, 22 Feb 2020 05:38:19 +0000 (06:38 +0100)
committerGerhard Sittig <redacted>
Sat, 18 Jul 2020 13:25:46 +0000 (15:25 +0200)
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

index f2e7f5ade2fe530cfd5b8bf5db9aaa538a104630..c7a2fd9c2adadb69f9ea318cff35680841588c82 100644 (file)
@@ -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