Like so --
find . -name "*.c" -or -name "*.h" -exec indent -nbfda -npcs -npsl -bli0 --no-tabs {} \;
The `indent` invocation differs from the last one noted in
CHANGES.txt (from 2006!?), in that I've added "--no-tabs",
to ensure indents are all space-based.
20 lines
277 B
C
20 lines
277 B
C
// for testing the compiler
|
|
|
|
#ifdef HEADER
|
|
#include <HEADER>
|
|
#endif
|
|
|
|
#define UNUSED __attribute__ ((__unused__))
|
|
|
|
#ifdef TYPE
|
|
static TYPE x UNUSED;
|
|
#endif
|
|
|
|
#ifdef SYMBOL
|
|
static int exists UNUSED = !!SYMBOL;
|
|
#endif
|
|
|
|
int main(int argc UNUSED, char *argv[]UNUSED)
|
|
{
|
|
return 0;
|
|
}
|