Skip to content

Style #411

@StanHash

Description

@StanHash

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions