Dietrich Epp
3f6acc9f42
Use more modern C
...
While C99 is not supported by old Mac OS compilers, line comments are
supported. Keeping strictly to old C90 style code is annoying without
benefit.
2022-04-21 13:57:17 -04:00
Dietrich Epp
3bf095fb49
Make source file headers consistent
...
- Standardize copyright and license notice
- Standardize header guards
2022-04-10 04:22:58 -04:00
Dietrich Epp
dd96385d7c
Style: Use trailing commas for enums
...
The trailing comma is supported in MPW and GCC. It fixes the formatting
issue with clang-format and makes cleaner diffs, so trailing commas have
been added to enums and clang-format has been run over the sources.
2022-04-10 03:51:59 -04:00
Dietrich Epp
c4bf86786e
Reorganize
...
- Extracted functions to //lib:test for writing tests
- Extracted functions to lib/util.h if they are useful outside tests
2022-03-30 03:46:19 -04:00
Dietrich Epp
617bf831d8
Extract common code into //lib package
2022-03-25 01:45:55 -04:00