diff options
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index edb1253..0da3eaa 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -2142,6 +2142,10 @@ IDLATTR ("["[^\]]*"]"){BN}* { current->type = current->type.mid(3); } + if (isTypedef && current->type.left(8)!="typedef ") + { + current->type.prepend("typedef "); + } bool needNewCurrent=FALSE; if (!current->name.isEmpty() && current->section!=Entry::ENUM_SEC) { |