summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-06-09 11:56:49 -0400
committerJune McEnroe <june@causal.agency>2021-06-09 11:56:49 -0400
commitdfc3ac95c1a59a9a593bd9ec08dbc99e03d4b7d2 (patch)
tree47915502c9eb6578a4905ad5dbd530bb4d07e520
parentReplace catf with seprintf (diff)
downloadcatgirl-dfc3ac95c1a59a9a593bd9ec08dbc99e03d4b7d2.tar.gz
catgirl-dfc3ac95c1a59a9a593bd9ec08dbc99e03d4b7d2.zip
Remove catf
Diffstat (limited to '')
-rw-r--r--chat.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/chat.h b/chat.h
index b82c4c9..e75112a 100644
--- a/chat.h
+++ b/chat.h
@@ -56,22 +56,6 @@ static inline char *seprintf(char *ptr, char *end, const char *fmt, ...) {
 	return (ptr > end ? end : ptr);
 }
 
-struct Cat {
-	char *buf;
-	size_t cap;
-	size_t len;
-};
-static inline void __attribute__((format(printf, 2, 3)))
-catf(struct Cat *cat, const char *format, ...) {
-	va_list ap;
-	va_start(ap, format);
-	int len = vsnprintf(&cat->buf[cat->len], cat->cap - cat->len, format, ap);
-	assert(len >= 0);
-	va_end(ap);
-	cat->len += len;
-	if (cat->len >= cat->cap) cat->len = cat->cap - 1;
-}
-
 enum Attr {
 	BIT(Bold),
 	BIT(Reverse),
Enroe 2020-02-11Add startup GPLv3 note and URLJune McEnroe 2020-02-11Make sure -D_GNU_SOURCE ends up in CFLAGS on LinuxJune McEnroe 2020-02-11Add note about setting PKG_CONFIG_PATHJune McEnroe 2020-02-11Rename query ID on nick changeJune McEnroe 2020-02-11Call completeClear when closing a windowJune McEnroe 2020-02-11Don't insert color codes for non-mentionsJune McEnroe 2020-02-11Take first two words in colorMentionsJune McEnroe 2020-02-11Use time_t for save signatureJune McEnroe 2020-02-11Set self.nick to * initiallyJune McEnroe 2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe 2020-02-11Cast towupper to wchar_tJune McEnroe 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe