I've been playing around with the source for psql, and as a result I
did some cleaning up in common.c.  Would anyone be interested in seeing
patches for that?  The main benefit is some eliminated code duplication,
plus the removal of some warts like 'continue' and 'break' where they
weren't needed.


Jeroen


Thu, 13 Feb 2003 04:23:07 +0100
"Jeroen T. Vermeulen" <jtv@xs4all.nl>
psql source suggestions
"Jeroen T. Vermeulen" <jtv@xs4all.nl> writes:
> I've been playing around with the source for psql, and as a result I
> did some cleaning up in common.c.  Would anyone be interested in seeing
> patches for that?  The main benefit is some eliminated code duplication,
> plus the removal of some warts like 'continue' and 'break' where they
> weren't needed.

Sure, send it along to pgsql-patches.  Code beautification is a
worthwhile goal that we spend far too little time on.

Of course, beauty is in the eye of the beholder, so there may not be
universal agreement that you made improvements ;-).  But send 'em along
and then we can debate the point.

			regards, tom lane

Wed, 12 Feb 2003 23:38:11 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: psql source suggestions 

Sure.  Shoot them over.

---------------------------------------------------------------------------

Jeroen T. Vermeulen wrote:
> I've been playing around with the source for psql, and as a result I
> did some cleaning up in common.c.  Would anyone be interested in seeing
> patches for that?  The main benefit is some eliminated code duplication,
> plus the removal of some warts like 'continue' and 'break' where they
> weren't needed.
> 
> 
> Jeroen
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Wed, 12 Feb 2003 23:47:39 -0500 (EST)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: psql source suggestions