#!/bin/sh
+
# This script attempts to find bad ifdef's, i.e. ifdef's that use braces
# but not the do { ... } while (0) syntax
#
+# src/tools/find_badmacros
+#
# This is useful for running before pgindent
for FILE
}' "$FILE"
grep -on '^#define.*{' "$FILE" | grep -v 'do[ ]*{'
done
-