1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-13 15:18:14 +00:00

Add explanation for xxxL macro definitions to xc.c

Define alternative macros for CSTKPTR, PVAR, and IVAR that can be used
in an lvalue context, since CSTKPTR = ...; would generate
error: assignment to cast is illegal, lvalue casts are not supported

A similar issue drives the PCMAC/PCMACL defines, although there it is
that the rvalue is (pccache - 1) and the lvalue is (pccache)
This commit is contained in:
Nick Briggs 2023-01-12 11:27:24 -08:00
parent b3f97a85c8
commit 336c13369a

View File

@ -134,6 +134,11 @@ LispPTR tscache asm("bx");
#define IVAR ((LispPTR *)IVar)
#define BCE_CURRENTFX ((struct frameex2 *)((DLword *)PVAR - FRAMESIZE))
/* Define alternative macros for CSTKPTR, PVAR, and IVAR that can be used
* in an lvalue context, since CSTKPTR = ...; would generate
* error: assignment to cast is illegal, lvalue casts are not supported
*/
#define CSTKPTRL (cspcache)
#define PVARL PVar
#define IVARL IVar