diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-23 04:35:31 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-23 04:35:31 +0800 |
commit | c515aa701d3320fb996297030a00ddfd3336db99 (patch) | |
tree | 47636fdd4f542ce3f0337de4a50e4e1dcb38ba98 /HACKING | |
parent | 01ca6d25a22e2deee130c2fe3723c27b7a41c2e1 (diff) | |
download | gsoc2013-epiphany-c515aa701d3320fb996297030a00ddfd3336db99.tar gsoc2013-epiphany-c515aa701d3320fb996297030a00ddfd3336db99.tar.gz gsoc2013-epiphany-c515aa701d3320fb996297030a00ddfd3336db99.tar.bz2 gsoc2013-epiphany-c515aa701d3320fb996297030a00ddfd3336db99.tar.lz gsoc2013-epiphany-c515aa701d3320fb996297030a00ddfd3336db99.tar.xz gsoc2013-epiphany-c515aa701d3320fb996297030a00ddfd3336db99.tar.zst gsoc2013-epiphany-c515aa701d3320fb996297030a00ddfd3336db99.zip |
HACKING: small update
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1,18 +1,28 @@ In order to keep the code nice and clean we have a few requirements you'll need to stick to in order to get your patch accepted: -- Use 2-space no-tabs for indentation (mandatory on new files, old ones will - be re-indented eventually. When modifying an existing file with 8-space - indentation keep the old style please). +- Use 2-space no-tabs for indentation (mandatory on new files, old + ones will be re-indented eventually. When modifying an existing file + with 8-space indentation keep the old style please). + - Use K&R style for the braces. + - No braces for one line control clauses. + - Callback functions have a suffix _cb. + - All files have to be encoded in UTF-8. + - Use char/int/double/..., not gchar/gint/gdouble/... types. + - All implementation files must include first "config.h", followed by the primary header, followed by a blank line, followed by all the local headers sorted alphabetically, followed by a blank line, followed by all the system headers sorted alphabetically. + + Headers should follow the same pattern excluding the config.h and + self file section, for obvious reasons. + - Make comments full sentences. This means proper capitalization and punctuation. |