X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fdatatype.h;h=76bd018e1bf10989c7a772af45393a5c0b272470;hb=aef8789873bd008d42aa50330ca98488fad91b31;hp=2cbebedef7738e1b153729adeb31633ed2cfe7dc;hpb=c123666d24e5dda1e7242b0c31b90c8cea769f82;p=cc65 diff --git a/src/cc65/datatype.h b/src/cc65/datatype.h index 2cbebedef..76bd018e1 100644 --- a/src/cc65/datatype.h +++ b/src/cc65/datatype.h @@ -144,8 +144,9 @@ typedef unsigned short type; /* Type elements needed for Encode/Decode */ #define DECODE_SIZE 5 -/* Unspecified size for the element count of an array */ -#define UNSPECIFIED -1L +/* Special encodings for element counts of an array */ +#define UNSPECIFIED -1L /* Element count was not specified */ +#define FLEXIBLE 0L /* Flexible array struct member */ /* Sizes */ #define SIZEOF_CHAR 1 @@ -482,6 +483,9 @@ long GetElementCount (const type* T); * array type). */ +type* GetElementType (type* T); +/* Return the element type of the given array type. */ + /* End of datatype.h */