blob: 51058c8b77651956acd13c9839c01907507a61e1 [file] [log] [blame]
Robert Hak40bafc52002-08-21 10:19:23 +00001$Id$
2
Robert Hak465ba3e2002-08-21 10:29:58 +00003 __________ __ ___.
4 Open \______ \ ____ ____ | | _\_ |__ _______ ___
5 Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
6 Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
7 Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
8 \/ \/ \/ \/ \/
9 Contribution Policies
10
11
Robert Hak40bafc52002-08-21 10:19:23 +000012In order for the project to run as smoothly as possible, it's best if all
13contributors adhere to a few simple conventions:
14
15Language
16--------
17Write all code in C. Sometimes assembly is faster, but C is always more
18readable and maintainable.
19
20Language features
21-----------------
22Write normal C code. Don't redefine the language. No new types (structs are
23structs, not typedefs), no C++isms or Javaisms. Also, avoid using "const".
24
25Names
26-----
27Variables and function names should be all lower case.
28Preprocessor symbols should be all uppercase.
29
30Style
31-----
32When changing code, follow the code style of the file you are editing.
33
34When writing new files, you may use the brace placement style of your choice.
35
36Always indent your code with four spaces. Don't use TAB characters, as that
37will mess up code display in CVS, printing, and a zillion other places.
38
39Keep lines below 80 columns length. Use whitespace and newlines to make the
40code easy to browse/read.
41
42Text format
43-----------
44Use "unix style" line feeds: "LF" only. Do not use "CR+LF".
45
46Patches
47-------
48Create a patch using 'cvs diff -ub'.
49Trim your patches so they only contain relevant changes.
50Submit all patches to the mailing list.
51Put [PATCH] first on the subject line of your mail.
52If the patch is very large (>50k), gzip it before you send it.
53
54
55
56
57
58
59
60
61