Re: [compiz] Coding standard

2009-02-03 Thread Erkin Bahceci
On Tue, Feb 3, 2009 at 5:44 PM, Dennis Kasprzyk wrote: > In compiz++ I've made few little changes that do not follow the our previous > coding style: > - allow variable definition in "for" loops: > for (int i = 0; i < foo; i++) > In the "C" version of compiz we've tried to follow the C89 rules, bu

Re: [compiz] Coding standard

2009-02-03 Thread Dennis Kasprzyk
In compiz++ I've made few little changes that do not follow the our previous coding style: - allow variable definition in "for" loops: for (int i = 0; i < foo; i++) In the "C" version of compiz we've tried to follow the C89 rules, but this is not necessary anymore and should improve readability.

Re: [compiz] Coding standard

2009-02-03 Thread troy d. straszheim
Kristian Lyngstøl wrote: > As I stated in my original post, I don't want an entire book. Whoops, missed that. sorry for the noise... ___ compiz mailing list compiz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/compiz

Re: [compiz] Coding standard

2009-02-03 Thread Kristian Lyngstøl
On Tue, Feb 3, 2009 at 5:09 PM, troy d. straszheim wrote: > IMHO this is by far the best Coding Standard for C++: > > http://www.gotw.ca/publications/c++cs.htm As I stated in my original post, I don't want an entire book. We're not doing enough bad stuff for that to be necessary. The draft I ma

Re: [compiz] Coding standard

2009-02-03 Thread troy d. straszheim
Kristian Lyngstol wrote: > > That's it so far. I really hope someone can rip this apart, since I ended > up trashing my more detailed ideas and threw this together in a hurry. At > least it should get the discussion started. > > Specially since this is written with C, and not C++ in mind. > Hi,

[compiz] Coding standard

2009-02-03 Thread Kristian Lyngstol
I've been trying to come up with some good coding standards, but I've realized that most of us already know most of this. So instead of trying to define every aspect of how we code Compiz-code, I'll try to outline some of the finer points. For a more complete list, you can review any of the many co