diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit dd9d1cefa26395c7d472a85f0678e6fce356c229
parent d00f715c81708951fd42dd2f6b3c4ad5df5bb19b
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun,  4 Jul 2021 23:26:59 +0200

make CONFIG external variable

Diffstat:
Msrc/diary.h | 4++--
Msrc/utils.c | 2++
Msrc/utils.h | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/diary.h b/src/diary.h @@ -1,7 +1,6 @@ #ifndef DIARY_H #define DIARY_H - #ifdef __MACH__ #include <CoreFoundation/CoreFoundation.h> #endif @@ -36,4 +35,4 @@ void edit_cmd(const char* dir, size_t dir_size, const struct tm* date, char** rc bool date_has_entry(const char* dir, size_t dir_size, const struct tm* i); -#endif +#endif +\ No newline at end of file diff --git a/src/utils.c b/src/utils.c @@ -323,6 +323,8 @@ void fpath(const char* dir, size_t dir_size, const struct tm* date, char** rpath char* unescape_ical_description(const char* description); char* escape_ical_description(const char* description); +config CONFIG; + config CONFIG = { .range = 1, .weekday = 1, diff --git a/src/utils.h b/src/utils.h @@ -53,6 +53,6 @@ typedef struct char* google_calendar; } config; -config CONFIG; +extern config CONFIG; #endif