Add options_t initializer

This commit is contained in:
Arkadiy Illarionov committed 2020-05-27 22:36:44 +03:00
1 parent a6cd4058fa
commit a259341df3
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ typedef struct {
int counter;
} main_t;
static main_t main_ctx = { {0, 0, 0, 0}, NULL, NULL, 0 };
static main_t main_ctx = { OPTIONS_INIT, NULL, NULL, 0 };
static options_t get_values(const gui_t *gui) {
options_t options = {
+2
View File
@@ -8,6 +8,8 @@ typedef struct options {
int clicks_number;
} options_t;
#define OPTIONS_INIT {0, 0, 0, 0}
char* get_config_file(void);
void load_options(const char* filename, options_t *opts);
void save_options(const char* filename, const options_t *opts);