Lassi Kortela
|
023937e5ea
|
Use backward compatible variable initializers
|
2019-08-19 01:14:09 +03:00 |
Lassi Kortela
|
10763df501
|
Add fallthrough comments to switch cases
Some versions of GCC warn otherwise, which is good.
|
2019-08-10 01:01:40 +03:00 |
Lassi Kortela
|
12fb30462b
|
Simplify endian (byte order) detection
The following:
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
are apparently semi-standard nowadays.
|
2019-08-09 21:30:30 +03:00 |
Lassi Kortela
|
79d44c0780
|
Get rid of almost all recursive includes
Simple rule: include files should never include include files.
"Notes on Programming in C", Rob Pike, February 21, 1989
<https://www.lysator.liu.se/c/pikestyle.html>
|
2019-08-09 19:00:17 +03:00 |
Lassi Kortela
|
0701b22d29
|
Rename #include'd C files from .c to .h
|
2019-08-09 18:30:02 +03:00 |