deltabeard / Peanut-GB

A Game Boy (DMG) emulator single header library written in C99. Performance is prioritised over accuracy.
https://projects.deltabeard.com/peanutgb/
283 stars 40 forks source link

all: fix code style #20

Closed deltabeard closed 5 years ago

deltabeard commented 5 years ago

In some places, the code exceeds the 80-char limit massively. Some inconsistencies exist too. I would like to use a code formatter like clang-format to automatically format my code. The amount of code modified should be kept minimal, so clang-format should be configured to use this current code style as much as possible. I don't want a massive thousand-line change commit for code style changes. Things like case statements shouldn't be indented as they are currently, in order to increase the amount of space on a line.

deltabeard commented 5 years ago

__gb_write is a disgusting indentation nightmare that has to be fixed immediately or deleted off the internet.