mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add comments to RPN expr struct
This commit is contained in:
@@ -17,13 +17,14 @@
|
|||||||
#define MAXRPNLEN 1048576
|
#define MAXRPNLEN 1048576
|
||||||
|
|
||||||
struct Expression {
|
struct Expression {
|
||||||
int32_t nVal;
|
bool isKnown; // Whether the expression's value is known
|
||||||
uint8_t *tRPN;
|
int32_t nVal; // If the expression's value is known, it's here
|
||||||
uint32_t nRPNCapacity;
|
uint8_t *tRPN; // Array of bytes serializing the RPN expression
|
||||||
uint32_t nRPNLength;
|
uint32_t nRPNCapacity; // Size of the `tRPN` buffer
|
||||||
uint32_t nRPNPatchSize;
|
uint32_t nRPNLength; // Used size of the `tRPN` buffer
|
||||||
uint32_t nRPNOut;
|
uint32_t nRPNPatchSize; // Size the expression will take in the obj file
|
||||||
bool isKnown;
|
// FIXME: does this need to be part of the struct?
|
||||||
|
uint32_t nRPNOut; // How many bytes have been written
|
||||||
};
|
};
|
||||||
|
|
||||||
/* FIXME: Should be defined in `asmy.h`, but impossible with POSIX Yacc */
|
/* FIXME: Should be defined in `asmy.h`, but impossible with POSIX Yacc */
|
||||||
|
|||||||
Reference in New Issue
Block a user