forked from Grive/grive
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
match065 edited this page Apr 30, 2012
·
6 revisions
Welcome to the grive wiki!
Grive news and discussion will be put in this Google+ page.
First, Grive is released in GPLv2 only. All contributed code must be GPLv2 or compatible in order to merge to the project. No copyright assignment is required.
There is a few style guidelines for grive source code. Please follow it if you want to contribute:
- The brackets should be place like this:
if ( ptr != 0 )
{
return 0 ;
}
- Use
0for null pointer, notNULL. - No Hungarian notation.
- Classes and functions have capital letters separating the words, e.g. SomeClass; Variable are all lower case, and use underscore
_to separate the words. - Class member variables have
m_as prefix. - All classes must be placed in the
grnamespace. Non-class function must be placed in inner namespace space, e.g. gr::os::MakeDir(). - Unit tests have its own namespace
grut. - Indentations must be using tab characters with tab width 4.