diff options
author | wrmr | 2025-06-24 22:03:41 -0400 |
---|---|---|
committer | wrmr | 2025-06-24 22:03:41 -0400 |
commit | f97b838a914c92ae58500ef5a0ae7dc47c96fb7f (patch) | |
tree | efdc0473507a7324a996b79d3e02b656655c51ae | |
parent | b0b005472fa0ec0d22fc2ed06cd7378a6ef68e9b (diff) |
clarify TaglineStatus type, update todo
-rw-r--r-- | main.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/main.c b/main.c index 84c9e98..6bccaf8 100644 --- a/main.c +++ b/main.c @@ -5,10 +5,8 @@ /* TODO: * - * - add a little temporary message line, maybe at the top of the screen - * + log_warn() goes here - * + "message not yours to edit" - * + "got 78 users and 722 posts in [nanoseconds?]" + * - maybe remove ncurses dependency + * - consider setting up a proper log file for log_warn / log_err stuff * **/ @@ -85,16 +83,17 @@ regex_t re_mention; +/* tagline & logging */ + #define TAGLINE_MAX 1024 char tagline[TAGLINE_MAX] = { 0 }; -enum { +typedef enum { TAGLINE_OK, TAGLINE_WARN, TAGLINE_ERR -} tagline_status = TAGLINE_OK; +} TaglineStatus; -/* logging */ -/* TODO: change to put in a proper log file or something */ +TaglineStatus tagline_status = TAGLINE_OK; void tagline_set(const char *fmt, ...) { va_list ap; |