-
See SEI CERT C Coding Standard
-
Remove unused parameters from internal functions
drill_add_drill_hole()
new_state()
-
Use consistent order for similar function parameters
- Reduces mental load
- Avoids stack reshuffling
- Easier debugging (stack in same order...)
-
Use descriptive variable names
-
Reduce cyclomatic complexity of large functions
These are all at least partially addressed by #210