diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2011-04-26 10:48:48 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2011-04-26 10:48:48 (GMT) |
commit | c604d141eb8b0708022a3e4b48b0b1871b692aa6 (patch) | |
tree | 5b1b526ababed94fc83b11349dd828da3bf11882 /src/scanner.l | |
parent | 145b564516f82be1bb4cc5a82277e7c9d10ca5ca (diff) | |
download | Doxygen-c604d141eb8b0708022a3e4b48b0b1871b692aa6.zip Doxygen-c604d141eb8b0708022a3e4b48b0b1871b692aa6.tar.gz Doxygen-c604d141eb8b0708022a3e4b48b0b1871b692aa6.tar.bz2 |
Release-1.7.4-20110426
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/scanner.l b/src/scanner.l index b654d47..122cd05 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1220,16 +1220,18 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) current->startLine = yyLineNr; current->bodyLine = yyLineNr; lineCount(); - curlyCount=0; + } +<PackageName>";" { current_root->addSubEntry(current); current_root = current ; - current = new Entry ; + current = new Entry ; initEntry(); - BEGIN( FindMembers ) ; - } -<PackageName>";" { BEGIN(FindMembers); } +<PackageName>"{" { + curlyCount=0; + BEGIN( ReadNSBody ); + } <FindMembers>{B}*"initonly"{BN}+ { current->type += " initonly "; if (insideCli) current->spec |= Entry::Initonly; @@ -3129,7 +3131,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) current->endBodyLine = yyLineNr; QCString &cn = current->name; QCString rn = current_root->name.copy(); - //printf("cn=`%s' rn=`%s'\n",cn.data(),rn.data()); + //printf("cn=`%s' rn=`%s' isTypedef=%d\n",cn.data(),rn.data(),isTypedef); if (!cn.isEmpty() && !rn.isEmpty()) { prependScope(); @@ -3174,7 +3176,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) } else { - if (!isTypedef) + if (!isTypedef && cn.find('@')==-1) // not typedef or unnamed struct { // enabled the next two lines for bug 623424 current->doc.resize(0); @@ -3392,7 +3394,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) } if (*yytext==';') // end of a struct/class ... { - if (msName.isEmpty() && memspecEntry && (current->section&Entry::COMPOUND_MASK)) + if (!isTypedef && msName.isEmpty() && memspecEntry && (current->section&Entry::COMPOUND_MASK)) { // case where a class/struct has a doc block after it if (!current->doc.isEmpty()) { |