mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Remove leading double underscores from header include guards
This commit is contained in:
parent
cc18ed39c6
commit
25c86bc1e7
26 changed files with 51 additions and 51 deletions
|
|
@ -107,7 +107,7 @@ SnapRAID is designed to recover from an interruption, including `SIGKILL`, at an
|
|||
- **Indentation**: Tabs for indentation, no alignment (existing codebase style)
|
||||
- **Comments**: Use `/** ... */` for multiline top comments preceding declarations and `/* ... */` for multiline comments within code. Use `/* first letter lowercase */` for single-line inline notes.
|
||||
- **Critical Comments**: Always add a comment at non-obvious critical points, especially around data-integrity invariants, crash recovery, fallback behavior, concurrency, and fatal versus best-effort error handling. Explain why the logic is required, not merely what the code does.
|
||||
- **Headers**: All `.h` files have include guards (`#ifndef __NAME_H`)
|
||||
- **Headers**: All `.h` files have include guards (`#ifndef NAME_H`)
|
||||
- **Preferences**: Use 0 instead of NULL and '\0'
|
||||
- **Preferences**: Use prefix ++variable and --variable instead of postfix variable++ and variable-- where both are equivalent
|
||||
- **Safety Checks**: Avoid adding safety checks for conditions that never happen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue