summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scanner.l b/src/scanner.l
index e6cbd17..7bf8f2b 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -3259,7 +3259,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
}
else
{
- if (current->section == Entry::ENUM_SEC)
+ if ((current->section == Entry::ENUM_SEC) || (current->spec&Entry::Enum))
{
current->program+=','; // add field terminator
}
@@ -3329,7 +3329,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
current->type.prepend(yytext);
}
<TypedefName>{ID} {
- if (current->section == Entry::ENUM_SEC)
+ if ((current->section == Entry::ENUM_SEC) || (current->spec&Entry::Enum))
{
current->program+=","; // add field terminator
}
@@ -3350,7 +3350,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
}
<TypedefName>";" { /* typedef of anonymous type */
current->name.sprintf("@%d",anonCount++);
- if (current->section == Entry::ENUM_SEC)
+ if ((current->section == Entry::ENUM_SEC) || (current->spec&Entry::Enum))
{
current->program+=','; // add field terminator
}