3 # This script attempts to find bad ifdef's, i.e. ifdef's that use braces
4 # but not the do { ... } while (0) syntax
8 # This is useful for running before pgindent
12 awk ' BEGIN {was_define = "N"}
13 { if (was_define == "Y" &&
15 printf "%s %d\n", FILENAME, NR
21 grep -on '^#define.*{' "$FILE" |
grep -v 'do[ ]*{'