diff options
| author | verdant <i@glowisle.me> | 2026-05-19 23:59:58 +0800 |
|---|---|---|
| committer | verdant <i@glowisle.me> | 2026-05-19 23:59:58 +0800 |
| commit | 163f22d1d281b70a234cd231187aa0bcbb297f91 (patch) | |
| tree | 5070b0511fad3a4aed7dc3d66479d45c5c24a137 /config.h | |
| parent | a4697b6c2a4b3f40576238291abf8080da9f9754 (diff) | |
| download | kl-163f22d1d281b70a234cd231187aa0bcbb297f91.tar.gz kl-163f22d1d281b70a234cd231187aa0bcbb297f91.zip | |
Format and split code
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 32 |
1 files changed, 17 insertions, 15 deletions
@@ -10,27 +10,29 @@ #define PROGRAM_VERSION "0.0.2" #define PROGRAM_AUTHORS "Verdant <im@verdant.ee>" -#define CONFIG_FILE_COMMENT "# kl config file (v"PROGRAM_VERSION")\n" \ - "#\n" \ - "# Please see your README for details.\n" \ - "#\n" \ - "# This file was auto-generated because it was missing.\n" \ +#define CFG_FILE_COMMENT \ + "# kl config file (v" PROGRAM_VERSION ")\n" \ + "#\n" \ + "# Please see your README for details.\n" \ + "#\n" \ + "# This file was auto-generated because it was missing.\n" -#define CFG_COMPLETE(key, val) ((strcmp((key), (val)) == 0) && ((val)[0] != '\0')) +#define CFG_COMPLETE(key, val) \ + ((strcmp((key), (val)) == 0) && ((val)[0] != '\0')) struct config { - char* home; - char* config_file_path; - char device[256]; - bool time; - bool keys_counter; + char *home; + char *config_file_path; + char device[256]; + bool time; + bool keys_counter; + bool show_shifted; }; -struct config* parese_config(struct config* cfg); +struct config *parese_config(struct config *cfg); -struct config* prepare_config_file(); - -struct config* config_init(); +struct config *prepare_config_file(); +struct config *config_init(); #endif |
