aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.h
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-03 17:58:31 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-03 17:58:41 -0400
commit5afe2a48f8d73dbef22d09266d4e33b0a40b4df1 (patch)
treeb24eba07f0047ed204dc747ab49652ac721b32fc /src/edbox.h
parent551fbf43202d02c68f4d90d0cf8b5257444b80ea (diff)
downloadfujinet-chat-5afe2a48f8d73dbef22d09266d4e33b0a40b4df1.tar.gz
Use a real array for edit_box. 6222 bytes free.
Diffstat (limited to 'src/edbox.h')
-rw-r--r--src/edbox.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/edbox.h b/src/edbox.h
index 67fd3fa..e4069a0 100644
--- a/src/edbox.h
+++ b/src/edbox.h
@@ -2,11 +2,12 @@
/**** public API ****/
-// #define EDBOX_SIZE 20 /* for testing only! */
-// #define EDBOX_MAXPOS 19 /* 1 less than EDBOX_SIZE! */
#define EDBOX_SIZE 240
#define EDBOX_MAXPOS 239
+typedef char edbox_t[EDBOX_SIZE];
+#define edit_box (*(edbox_t *)EDBOX_ADDR)
+
extern char edbox_visible;
extern char edbox_len;