STYLE: make rules more granular and consistent, add examples #156
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "style-c"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -112,0 +119,4 @@1. Avoid:- function pointers; see [0].- heap memory allocation; see [0].- too many levels of dereferences; see [0].I struggled with coming up with this example. Could someone proofread this?
I made changes to allow simple citation of the guidelines and clarify some of the visual hierarchy of the document.
@ -9,0 +31,4 @@case possibility:statement;break;case default:This should just be
default:(so,sed 34s:case ::); as-is this is a syntax error.@ -34,3 +71,1 @@case 'l': mode |= LESS; break;default: return usage(s);}5. Fixed bounds for loops [0].I fear this is impossible; dj(1), for instance, necessarily can't put an upward bound on read cycles.
Maybe, "where possible"?
Merged.
Pull request closed