The stock BSD indent has two bugs. First, a comment after the word 'else' causes the rest of the file to be ignored. Second, it silently ignorestypedefs after getting the first 100.Both problems are worked-around in this script. We also include a patchfor the second bug in: /src/tools/pgindent/indent.bsd.patchEven with the workaround, installation of the patch produces betteroutput.GNU indent, version 1.9.1, has several bugs, and is not recommended.These bugs become pretty major when you are doing >200k lines of code.If you don't believe me, take a directory and make a copy. Run pgindenton the copy using GNU indent, and do a diff -r. You will see what Imean. GNU indent does some things better, but mangles too.We get the list of typedef's included in pgindent by running: /src/tools/find_typedef