HunterZ / hzmoria

My cleanup fork of UMoria 5.6
GNU General Public License v3.0
1 stars 0 forks source link

Remove dead code and clean up formatting #2

Open HunterZ opened 2 years ago

HunterZ commented 2 years ago

There's a bunch of dead code in the codebase:

Also need to get down to one common implementation that supports Windows, Mac, and Linux, with no/minimal macrobatics. This means leaning on BearLibTerminal for I/O as much as possible, and trying to stick to ANSI C as much as possible for everything else (file I/O etc.).

HunterZ commented 2 years ago

Formatting and style guide:

Basic text formatting:

Basic code formatting:

Flow control formatting/structure:

Loop/increment/decrement semantics:

Pointer/array semantics:

Code structure:

Variables/types:

Functions:

Macros:

HunterZ commented 2 years ago

Regarding ANSI C: