Format like smack-a-brother, and write comments as sentences

Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
This commit is contained in:
shweet committed 2026-11-22 17:30:03 -05:00
1 parent 40f6b554b5
commit 7afdf709c3
176 files changed
+20500 -19048

No files matched your search

+10 -10
View File
@@ -3,24 +3,24 @@
#include "localization.h"
#define THEMES \
X(THEME_LIGHT, LABEL_THEME_LIGHT) \
X(THEME_DARK, LABEL_THEME_DARK) \
X(THEME_CLASSIC, LABEL_THEME_CLASSIC)
X(THEME_LIGHT, LABEL_THEME_LIGHT) \
X(THEME_DARK, LABEL_THEME_DARK) \
X(THEME_CLASSIC, LABEL_THEME_CLASSIC)
enum Theme
{
enum Theme
{
#define X(symbol, string) symbol,
THEMES
#undef X
THEME_COUNT
};
};
constexpr StringType THEME_STRINGS[] = {
constexpr StringType THEME_STRINGS[] = {
#define X(symbol, string) string,
THEMES
THEMES
#undef X
};
};
#undef THEMES
void theme_set(Theme);
void theme_set(Theme);