Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Aug 18, 2014, 7:10:02 AM (9 years ago)
- Author:
-
MarkDoliner
- Comment:
-
Add note about self-documenting code, and a few other working tweaks.
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v14
|
v15
|
|
55 | 55 | |
56 | 56 | == Comments == |
57 | | * A comment or two in the static (non-exported) functions is good, but not essential. |
58 | | * Function declarations in header files must be documented. See our other header files for examples. (If you find an undocumented or poorly documented function, please do submit a patch fixing it!) |
| 57 | * Code should be self-documenting. If the code you're writing does something non-obvious, add a comment to help future developers understand what's happening. |
| 58 | * Function declarations in header files must be documented. See our existing header files for examples. (If you find an undocumented or poorly documented function, please submit a patch to fix it!) |
| 59 | * Documenting static (non-exported) functions is good, but not essential. |
59 | 60 | * Only use C89 comments, not C++/C99 one-line comments: |
60 | 61 | |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!