Re: indent

From: Robert Collins <robert.collins@dont-contact.us>
Date: Tue, 9 Jan 2001 09:16:39 +1100

That was Henrik's indent - I just saw the after effects in the auth_rewrite branch...
I'm getting rid of a lot of my // comments - I typically use them for memory aids until the code is stable.

I'll try the
/*
 * balh.
 */

Layout, Thanks..
Rob
----- Original Message -----
From: "Duane Wessels" <wessels@squid-cache.org>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: "Squid-Dev (E-mail)" <squid-dev@squid-cache.org>
Sent: Tuesday, January 09, 2001 8:08 AM
Subject: Re: indent

>
>
> On Mon, 8 Jan 2001, Robert Collins wrote:
>
> > Is there any way to get indent to be a bit 'nicer' with things like
> > this:
> >
> > I'm referring to the
> > comment */
> > if ()
> > that indent changed to
> > comment */ if ()
> > Rob
> >
> > ===================================================================
> > RCS file: /cvsroot/squid/squid/src/auth/ntlm/auth_ntlm.c,v
> > retrieving revision 1.1.2.20
> > retrieving revision 1.1.2.21
> > diff -c -r1.1.2.20 -r1.1.2.21
> > *** squid/src/auth/ntlm/auth_ntlm.c 2001/01/07 20:43:02 1.1.2.20
> > --- squid/src/auth/ntlm/auth_ntlm.c 2001/01/08 00:14:57 1.1.2.21
> > ***************
> > *** 998,1005 ****
> > //user passed externa; authentication in every case to get
> > here. f.
> > Let it through
> > } /* we don't unlock the auth_user until
> > the connection is dropped. Thank
> > ! * MS for this quirk. */
> > ! if (authenticateCheckAuthUserIP(checklist->src_addr, auth_user))
> > {
> > /* Once the match is completed we have finished with the
> > * auth_user structure */
> > /* check to see if we have matched the user-acl before */
> > --- 998,1004 ----
> > //user passed externa; authentication in every case to get
> > here. f.
> > Let it through
> > } /* we don't unlock the auth_user until
> > the connection is dropped. Thank
> > ! * MS for this quirk. */ if
> > (authenticateCheckAuthUserIP(checklist->src_addr, auth_user)) {
> > /* Once the match is completed we have finished with the
> > * auth_user structure */
> > /* check to see if we have matched the user-acl before */
> >
>
>
>
> It could be a bug with your version of indent.
>
>
> I don't like // comments mixed in there. Not sure if thats a problem or not.
>
> Also, I like to write multi-line comments like this:
>
>
> /*
> * foo blah foo
> * blah foo blah
> */
>
>
Received on Mon Jan 08 2001 - 15:05:28 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:13 MST