diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-04-03 17:58:31 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-04-03 17:58:41 -0400 |
| commit | 5afe2a48f8d73dbef22d09266d4e33b0a40b4df1 (patch) | |
| tree | b24eba07f0047ed204dc747ab49652ac721b32fc /src/edbox.h | |
| parent | 551fbf43202d02c68f4d90d0cf8b5257444b80ea (diff) | |
| download | fujinet-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.h | 5 |
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; |
