1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-06 11:03:29 +00:00

Replaces (expanded) lisp string base access pattern with STRING_BASE macro

This commit is contained in:
Nick Briggs
2025-07-25 17:52:34 -07:00
parent 364bc1f31c
commit a0e703678c

View File

@@ -233,15 +233,13 @@ LispPTR mess_read(LispPTR *args)
struct stat sbuf;
int size, save_size;
char *base;
LispPTR *naddress;
int i;
static char temp_buf[MESSAGE_BUFFER_SIZE];
SETJMP(NIL);
/* Get buff address from LISP */
naddress = (LispPTR *)(NativeAligned4FromLAddr(args[0]));
base = (char *)(NativeAligned2FromLAddr(((OneDArray *)naddress)->base));
STRING_BASE(args[0], base);
close(log_id);
TIMEOUT(log_id = open(logfile, O_RDONLY));