about summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-30 19:45:34 -0500
committerJune McEnroe <june@causal.agency>2018-11-30 19:45:34 -0500
commit414f928ac58278188638f8146a28a5747909de7b (patch)
tree8b5cf159990d66d7379f44a69e1f87526d1474bb /chat.h
parentSeparate ircConnect and ircDisconnect (diff)
downloadcatgirl-414f928ac58278188638f8146a28a5747909de7b.tar.gz
catgirl-414f928ac58278188638f8146a28a5747909de7b.zip
Handle signals consistently in the event loop
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chat.h b/chat.h
index f0d396d..e8f9378 100644
--- a/chat.h
+++ b/chat.h
@@ -20,6 +20,7 @@
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdnoreturn.h>
 #include <time.h>
 #include <wchar.h>
 
@@ -43,7 +44,7 @@ void selfJoin(const char *join);
 
 void eventWait(const char *argv[static 2]);
 void eventPipe(const char *argv[static 2]);
-void eventLoop(void);
+noreturn void eventLoop(void);
 
 struct Tag {
 	size_t id;
r> 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe