From: Andrew Dunstan on 3 Apr 2010 11:48 Following up Tom's complaint about behaviour of pgindent, I have been wrestling with it a bit. I noticed several things. First awk on my box spits out fairly useless warnings about regular expressions containing a literal '\*'. These warnings are silenced by replacing those with '[*]', which should have the same effect. Second, the script issues warnings about how somebody hopes that I installed indent.bsd.patch. Yes I did, and the messages are just annoying noise, so I propose to get rid of them. The usual rule of unix utilities is to be silent on success, and I think we should follow it. Third, as mentioned in that other thread I think we should put the exclusion of certain typedef symbols into the pgindent script. The attached patch does all three of these things. I'm not done yet - I am seeing issues with at least two files: contrib/fuzzystrmatch/dmetaphone.c and src/backend/tsearch/wparser_def.c, that I need to chase down. Ideally, this hodegpodge of awk and sed pipes would be replaced by a perl script that would do all that inline much more efficiently, along with some more features. But that's a longer term project. cheers andrew
|
Pages: 1 Prev: message clarifications Next: [HACKERS] fallback_application_name and pgbench |