summary refs log tree commit diff
path: root/database.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--database.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/database.h b/database.h
index 0494851..1837a9f 100644
--- a/database.h
+++ b/database.h
@@ -32,16 +32,21 @@
 
 enum { DatabaseVersion = 0 };
 
+#define ENUM_TYPE \
+	X(Privmsg, "privmsg") \
+	X(Notice, "notice") \
+	X(Action, "action") \
+	X(Join, "join") \
+	X(Part, "part") \
+	X(Quit, "quit") \
+	X(Kick, "kick") \
+	X(Nick, "nick") \
+	X(Topic, "topic")
+
 enum Type {
-	Privmsg,
-	Notice,
-	Action,
-	Join,
-	Part,
-	Quit,
-	Kick,
-	Nick,
-	Topic,
+#define X(id, _) id,
+	ENUM_TYPE
+#undef X
 };
 
 static bool verbose;
rom June 8June McEnroe 2024-06-10Cope with not having an EXIF infoJune McEnroe 2024-06-10Resize using target pixel counts for consistencyJune McEnroe This will resize film scans to about the same size as for the digital photos. 2024-06-10Add The Girl Who Was Convinced...June McEnroe Not much there. The illustrations are very nice though. 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe