-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Right now, style is inconsistent (I am to blame too). Here are some examples of diverging style elements found in fe8u:
| file | author/year | braces | pointer declaration | switch blocks indent |
|---|---|---|---|---|
| hardware.c | camthesaxman/2018 | Allman | type *var |
no |
| ap.c | myself/2018 | Java | type* var |
no |
| animedrv.c | myself/2019 | Allman | type* var |
no |
| mapanim.c (first half) | NoahNelson/2021 | Java | type *var |
no |
| banim-main.c | MokhaLeee/2023 | K&R ("Linux Kernel") | type *var |
no |
| prep_itemscreen.c | Eebit/2023 | Java | type* var |
yes |
We should probably agree on a consistent style (at least for braces and pointer declarations I think) and enforce it for contributions. The discussion of which style is, in my opinion, up to regular contributors (right now I think @MokhaLeee and @Eebit qualify).
My own (current) opinions regarding brace and pointer decl style are (sorry Mokha): I don't like K&R braces (inconsistent) and I don't like type *var style declarations (I prefer type * var and mind type* var less). Feel free to disregard them (I only rarely contribute directly these days).
Naming conventions are also something that probably should be made explicit.
Metadata
Metadata
Assignees
Labels
No labels