https://github.com/Concoctist/concoct/issues
irc://irc.concoct.ist:6697/concoct
https://github.com/Concoctist/concoct/wiki
Please follow the existing styling as closely as possible for any code contributions. Here are some tips to follow:
-
Use the C99 standard.
-
//
should be used for comments on a single line. -
Multi-line
/* ... */
comments are encouraged before functions to document them. -
Use spaces and not tabs to be consistent with the existing code.
-
Indent by 2 spaces.
-
Custom types specified with
typedef
should have the first letter of their name capitalized. -
Please use Allman style for blocks. For example:
int func() { // ... }
Rather than K&R style:
int func() { // ... }
-
Use
const
when possible instead of#define
for constants as it encourages stronger typing. -
Constant variable names should be fully capitalized. For example:
const double PI = 3.141592653589793238463;
-
Variable and function names containing multiple words should be separated with an underscore
_
rather than using camelCase or PascalCase. -
switch
cases with only a single statement should reside on a single line. The right side should also be vertically aligned. For example:switch(oc) { case OP_ADD: return "OP_ADD"; case OP_OR: return "OP_OR"; // ... }