Here's some changes I made last night to psql's common.c (as found in
7.3.2). It removes some code duplication and #ifdeffing, and some
unstructured ugliness such as tacky breaks and an unneeded continue.
Breaks up a large function into smaller functions and reduces required
nesting levels, and kills a variable or two.
If this doesn't apply against CVS, I can try to redo it on the CVS
version, but could anyone try it out before I go to all that overhead?
Jeroen