jacketizer / libnmea

Lightweight C library for parsing NMEA 0183 sentences
MIT License
260 stars 92 forks source link

Reformat some of the source files to KNF #49

Closed igrr closed 3 years ago

igrr commented 3 years ago

Was making a small example update and ran into inconsistent formatting. Since the main README.md clearly specifies "KNF with tabs" as the style, I think it is appropriate to fix the formatting where it differs.

I wasn't able to get the correct formatting using the indent command mentioned in the readme. Have tried both indent on macOS and indent on Ubuntu 20.04. The options given in the readme produced completely different formatting. I'm not familiar enough with indent to find the issue, though.

Instead I have formatted with Astyle 3.1, using the following options: --style=knf --indent=tab. This seems to be produce overall the same formatting as in the repository right now, except for the changes here: spaces to tabs, an un-indented cases.