]> git.sur5r.net Git - cc65/blobdiff - src/cc65/datatype.h
Fixed several type conversion issues
[cc65] / src / cc65 / datatype.h
index 2cbebedef7738e1b153729adeb31633ed2cfe7dc..76bd018e1bf10989c7a772af45393a5c0b272470 100644 (file)
@@ -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 */