summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;