httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Style list summary
Date Wed, 26 Jun 1996 15:32:55 GMT
OK, here's what I've got so far. Check that I have represented your views
correctly in the table at the bottom.

1. Function declarations

a)

int
main(...)

b)

int main(...)

2. Commas

a)
	f(a, b);

b)
	f(a,b);

3. Braces

a)
	while(x) {
	    ...
	}

b)
	while(x)
	{
	    ...
	}

c)
	while(x)
	    {
	    ...
	    }

4. For statements

a)
	for(a ; b ; c)

b)
	for(a; b; c)

5. Comment indentation

a)
	code;
	/* comment */
	code;

b)
	code;
    /* comment */
	code;

6. Switches

Note: Illustrated using 3c.

a)
	switch(x)
	    {
	case a:
	    code;
	case b:
	    code;
	    }

b)
	switch(x)
	    {
	    case a:
		code;
	    case b:
		code;
	    }

7. Function declarations(2)

Note: Illustrated using 1b.

a)
int main(...)

b)
int main (...)

Opinions so far:

	1 2 3 4 5 6 7
Chuck	b a b b a b a
Randy               b
Paul    a a a b a
Ben     b b c a b a a
RST         a     a
Mark    b b a b a b a

Total   b ? a b a ? a

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message