Re: [JDBC] driver source code indentation

2001-09-06 Thread Barry Lind
Dave, I agree with you, and it seems that much of the existing jdbc code is formated that way. But before starting a thread on what everybody prefers as their java format, let me first ask the question: Should the jdbc java code use the same formatting as the C code? If the answer is yes,

Re: [JDBC] driver source code indentation

2001-09-06 Thread Liam Stewart
On Thu, Sep 06, 2001 at 09:51:19AM -0700, Barry Lind wrote: Should the jdbc java code use the same formatting as the C code? IMHO, yes: for consistency and because it is, at the moment, part of the main package. Liam -- Liam Stewart :: Red Hat Canada, Ltd. :: [EMAIL PROTECTED]

Re: [JDBC] driver source code indentation

2001-09-05 Thread Anders Bengtsson
On Tue, 4 Sep 2001, Bruce Momjian wrote: Can people tak a look at that and see if they like it? I will work on astyle to find a format that matches the main code indenting. If you like it, I will indent just after we go beta. Looks great! I only noticed two things that I sort of disliked.

Re: [JDBC] driver source code indentation

2001-09-05 Thread Dave Cramer
Well, my vote would be for a 2 space indent. Dave On Tue, 2001-09-04 at 16:59, Tom Lane wrote: Barry Lind [EMAIL PROTECTED] writes: I am OK with the style used for the C code. However I would like the following additional step done for the java code: replace all tabs with spaces. I

[JDBC] driver source code indentation

2001-09-04 Thread Liam Stewart
I suggest that the JDBC driver adopt PostgreSQL's indentation standards (see PostgreSQL developers FAQ, question 1). I see that some source files have used this standard, but the vast majority do not. We should have a standard for consistency and our own sanity if nothing else. Liam -- Liam

Re: [JDBC] driver source code indentation

2001-09-04 Thread Bruce Momjian
I suggest that the JDBC driver adopt PostgreSQL's indentation standards (see PostgreSQL developers FAQ, question 1). I see that some source files have used this standard, but the vast majority do not. We should have a standard for consistency and our own sanity if nothing else. Glad

Re: [JDBC] driver source code indentation

2001-09-04 Thread Barry Lind
I agree that this is needed. In fact I know Bruce wants to do something in this area. In fact he sent out a few months ago a sample of the code after it had been cleaned up by some tool. At the time no one seemed to be very interested. Going forward for 7.2 I think now is the time that

Re: [JDBC] driver source code indentation

2001-09-04 Thread Ross J. Reedstrom
On Tue, Sep 04, 2001 at 12:43:21PM -0700, Barry Lind wrote: snip I am OK with the style used for the C code. However I would like the following additional step done for the java code: replace all tabs with spaces. Oh noo! Barry's stumbled over the tripwire of the Tab/Spaces

Re: [JDBC] driver source code indentation

2001-09-04 Thread Tom Lane
Barry Lind [EMAIL PROTECTED] writes: I am OK with the style used for the C code. However I would like the following additional step done for the java code: replace all tabs with spaces. I disagree with this, because then we are *not* applying the same coding standards in the backend and