From 53ce04126721711875031fd64b8ab1b7d05167ae Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 7 Apr 2026 06:26:23 -0400 Subject: Rewrite txbuf_append_str2(), txbuf_set_str2(), txbuf_set_str3() as macros (actually saves code). 7159 bytes free. --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 1f533b3..9effe26 100644 --- a/src/main.c +++ b/src/main.c @@ -33,10 +33,12 @@ void txbuf_init(void) { txbuflen = tx_buf[0] = 0; } +/* void txbuf_append_str2(const char *s1, const char *s2) { txbuf_append_str(s1); txbuf_append_str(s2); } +*/ /* void txbuf_append_str3(const char *s1, const char *s2, const char *s3) { @@ -51,15 +53,19 @@ void txbuf_set_str(const char *str) { txbuf_append_str(str); } +/* void txbuf_set_str2(const char *s1, const char *s2) { txbuf_set_str(s1); txbuf_append_str(s2); } +*/ +/* void txbuf_set_str3(const char *s1, const char *s2, const char *s3) { txbuf_set_str2(s1, s2); txbuf_append_str(s3); } +*/ void txbuf_send(void) { /* don't send empty buffer */ -- cgit v1.2.3