Updated parse_typedef() function. /JL

This commit is contained in:
2019-01-29 20:03:04 +01:00
parent 3ea5002ded
commit ba69d83e2b

View File

@@ -141,6 +141,7 @@ class PARSEOBJECT:
if self.typedef_enum == True:
if l[0] == "TOKEN_LBRACE" and len(l) == 2:
self.enum_begin = True
enum_cnt = 0
continue
if len(l) == 1:
if l[0].endswith(","):
@@ -184,6 +185,9 @@ class PARSEOBJECT:
if w == "ENUM" or w == "enum":
self.typedef_enum = True
continue
if w == "STRUCT" or w == "struct":
self.inside_typedef = False
continue
def parse_comment(self, l):