You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1996/06/26 19:06:25 UTC
Style list II
Here we go again.
I've split 3a into 3a1 and 3a2 to reflect if/else options. I'll count votes
for either a1 or a2 as votes for a, if you see what I mean.
Also note the new ones at the end... fill in the blanks!
1. Function declarations
Note: Illustrated using 7a.
a) int
main(...)
b) int main(...)
2. Commas
a) f(a, b);
b) f(a,b);
3. Braces
a1) if(x) {
code;
} else {
code;
}
a2) if(x) {
code;
}
else {
code;
}
b) if(x)
{
code;
}
else
{
code;
}
c) if(x)
{
code;
}
else
{
code;
}
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 3a.
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 (...)
8. Assignment
a) a=b
b) a = b
9. Arithmetic operators
a) a+b
b) a + b
10. Logical operators
a) a<b
b) a < b
11. Incrementation
a) ++a;
b) ++ a;
12. Function declarations(3)
Note: Illustrated using 1b, 7a.
a) int main()
{
code;
}
b) int main()
{
code;
}
1 2 3 4 5 6 7 8 9 10 11 12
Chuck b a b b a b a
Randy a a b a a a b
Paul a a a b a
Ben b b c a b a a a a b a b
RST b a a b a a b a
Mark b b a b a b a
David a a b a
Alexei b a a b a a b a
Total b a a b a a ab a 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.
Re: Style list II
Posted by Alexei Kosut <ak...@organic.com>.
On Wed, 26 Jun 1996, Ben Laurie wrote:
8b
9b
10b
11a
-- Alexei Kosut <ak...@organic.com> The Apache HTTP Server
http://www.nueva.pvt.k12.ca.us/~akosut/ http://www.apache.org/
Re: Style list II
Posted by ra...@madhaus.utcs.utoronto.ca.
8b,9b,10b,11a,12a
-Rasmus