Add a new member to memberlabel_t to hold the offset of a structure member for CON access. This will be used in a future commit.

git-svn-id: https://svn.eduke32.com/eduke32@7188 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-11-18 18:10:04 +00:00
parent acf477c09d
commit 04c9f99620
2 changed files with 562 additions and 569 deletions

File diff suppressed because it is too large Load diff

View file

@ -45,8 +45,12 @@ enum
LABEL_EVENT = 64, LABEL_EVENT = 64,
}; };
#define LABEL_HASPARM2 1 #define LABEL_CHAR sizeof(uint8_t)
#define LABEL_ISSTRING 2 #define LABEL_SHORT sizeof(uint16_t)
#define LABEL_INT sizeof(uint32_t)
#define LABEL_UNSIGNED 8
#define LABEL_HASPARM2 16
#define LABEL_ISSTRING 32
#define VM_INSTMASK 0xfff #define VM_INSTMASK 0xfff
@ -133,11 +137,15 @@ extern const char *EventNames[MAXEVENTS];
#if !defined LUNATIC #if !defined LUNATIC
extern intptr_t *g_scriptPtr; extern intptr_t *g_scriptPtr;
typedef struct typedef struct
{ {
const char *name; const char *name;
int lId, flags, maxParm2;
} memberlabel_t; int32_t lId;
uint32_t flags;
int16_t maxParm2;
int16_t offset;
} memberlabel_t;
extern const memberlabel_t ActorLabels[]; extern const memberlabel_t ActorLabels[];
extern const memberlabel_t InputLabels[]; extern const memberlabel_t InputLabels[];