From 00d99b082162e287d481577915be73d5bf1dc483 Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 30 May 2019 04:05:29 -0700 Subject: add enum defined types --- src/parse.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/parse.h') diff --git a/src/parse.h b/src/parse.h index 89cf4fc..754462f 100644 --- a/src/parse.h +++ b/src/parse.h @@ -55,12 +55,18 @@ enum parse_type_e { PARSE_TYPE_HASH_DEFTYPE = 38, }; +enum parse_deftype_e { + PARSE_DEFTYPE_STRUCT, + PARSE_DEFTYPE_UNION, + PARSE_DEFTYPE_ENUM, +}; + struct parse_deftype_s { char name[TOK_MAX_LEN]; + enum parse_deftype_e type; size_t line; size_t col; bool is_used; - bool is_union; bool is_in_array; bool is_in_hash; unsigned member_list_len; -- cgit v1.2.3