From f97b838a914c92ae58500ef5a0ae7dc47c96fb7f Mon Sep 17 00:00:00 2001 From: wrmr Date: Tue, 24 Jun 2025 22:03:41 -0400 Subject: clarify TaglineStatus type, update todo --- main.c | 15 +++++++-------- 1 file 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; -- cgit 1.4.1-2-gfad0