summary refs log tree commit diff
diff options
context:
space:
mode:
authorwrmr2025-06-24 22:03:41 -0400
committerwrmr2025-06-24 22:03:41 -0400
commitf97b838a914c92ae58500ef5a0ae7dc47c96fb7f (patch)
treeefdc0473507a7324a996b79d3e02b656655c51ae
parentb0b005472fa0ec0d22fc2ed06cd7378a6ef68e9b (diff)
clarify TaglineStatus type, update todo
-rw-r--r--main.c15
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;