aboutsummaryrefslogtreecommitdiff
path: root/src/irc.h
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-07 06:37:51 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-07 06:37:51 -0400
commitce92ed10abcd5e30198579dc42357ff369b2faeb (patch)
tree6ebdfa0f36537a38ba46c558103ec237644971c0 /src/irc.h
parent53ce04126721711875031fd64b8ab1b7d05167ae (diff)
downloadfujinet-chat-ce92ed10abcd5e30198579dc42357ff369b2faeb.tar.gz
Clean up commented-out junk.HEADmaster
Diffstat (limited to 'src/irc.h')
-rw-r--r--src/irc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/irc.h b/src/irc.h
index c2fdb87..0c5c7ed 100644
--- a/src/irc.h
+++ b/src/irc.h
@@ -17,19 +17,17 @@ void txbuf_append_chr(char c);
/* appends a string to the transmit buffer, updates txbuflen. */
void txbuf_append_str(const char *str);
+/* convenience macro */
#define txbuf_append_str2(s1, s2) do { txbuf_append_str(s1); txbuf_append_str(s2); } while(0)
-// void txbuf_append_str2(const char *s1, const char *s2);
-// void txbuf_append_str3(const char *s1, const char *s2, const char *s3);
/* clears the transmit buffer, then appends a string to it. */
/* turning into a macro bloats the code */
void txbuf_set_str(const char *str);
/* as txbuf_set_str(), but multiple strings. */
+/* making them macros actually makes the code smaller. */
#define txbuf_set_str2(s1, s2) do { txbuf_set_str(s1); txbuf_append_str(s2); } while(0)
-// void txbuf_set_str2(const char *s1, const char *s2);
#define txbuf_set_str3(s1, s2, s3) do { txbuf_set_str(s1); txbuf_append_str(s2); txbuf_append_str(s3); } while(0)
-// void txbuf_set_str3(const char *s1, const char *s2, const char *s3);
/* sends whatever's in the transmit buffer, then clears it. if nothing was
in the buffer, nothing gets sent. */