This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
In order to keep the code nice and clean we have a few requirements you'll |
| 2 |
need to stick to in order to get your patch accepted: |
| 3 |
|
| 4 |
- use 2-space no-tabs for indentation (mandatory on new files, old ones will |
| 5 |
be re-indented eventually. When modifying an existing file with 8-space |
| 6 |
indentation keep the old style please) |
| 7 |
- Use K&R style for the braces |
| 8 |
- No braces for one line control clauses. |
| 9 |
- please compare with NULL or FALSE isntead of using "!" |
| 10 |
- callback functions have a suffix _cb |
| 11 |
- all files have to be encoded in UTF-8 |
| 12 |
- Use char/int/double/..., not gchar/gint/gdouble/... types. |
| 13 |
|
| 14 |
- data/kr-gnome-indent.cfg is provided as a reference config file for the |
| 15 |
uncrustify program to get correct indentation in new files. |
| 16 |
|
| 17 |
Comment blocks are written like this: |
| 18 |
|
| 19 |
/* |
| 20 |
* bla_bla_cb: This is an example comment block |
| 21 |
*/ |
| 22 |
|
| 23 |
See ChangeLog.README for Git checkin rules. |
| 24 |
See doc/debugging.txt for some tips and tricks for debugging. |
| 25 |
|
| 26 |
Do NOT commit to this module without permission from a maintainer. |
| 27 |
See the MAINTAINERS file for who they are. |