summaryrefslogtreecommitdiffstats
path: root/include/datatype.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/datatype.h')
-rw-r--r--include/datatype.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/datatype.h b/include/datatype.h
index 8a123631..053fbd93 100644
--- a/include/datatype.h
+++ b/include/datatype.h
@@ -81,11 +81,16 @@ enum byteorder {
struct expr;
+enum datatype_flags {
+ DTYPE_F_ALLOC = (1 << 0),
+};
+
/**
* struct datatype
*
* @type: numeric identifier
* @byteorder: byteorder of type (non-basetypes only)
+ * @flags: flags
* @size: type size (fixed sized non-basetypes only)
* @name: type name
* @desc: type description
@@ -96,8 +101,9 @@ struct expr;
* @sym_tbl: symbol table for this type
*/
struct datatype {
- enum datatypes type;
+ uint32_t type;
enum byteorder byteorder;
+ unsigned int flags;
unsigned int size;
const char *name;
const char *desc;