diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-02-01 13:59:42 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-02-01 13:59:42 (GMT) |
commit | 8fda55cdfe71d9e23407169499e918478161328d (patch) | |
tree | 95791f3a49cf176781e5089ddcf643f2aa8e93a1 /src/docparser.cpp | |
parent | daa0336ab06f76a07f59499cbc47fd919073749d (diff) | |
download | Doxygen-8fda55cdfe71d9e23407169499e918478161328d.zip Doxygen-8fda55cdfe71d9e23407169499e918478161328d.tar.gz Doxygen-8fda55cdfe71d9e23407169499e918478161328d.tar.bz2 |
Release-1.3-rc3
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index d194a49..2fd7341 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -276,7 +276,7 @@ static void checkArgumentName(const QString &name,bool isParam) } } -/*! Checks if the parameters that have been specified using @param are +/*! Checks if the parameters that have been specified using \@param are * indeed all paramters. * Must be called after checkArgumentName() has been called for each * argument. @@ -2219,7 +2219,7 @@ int DocIndexEntry::parse() break; } } - if (tok!=TK_WHITESPACE) retval=tok; + if (tok!=0) retval=tok; doctokenizerYYsetStatePara(); endindexentry: DBG(("DocIndexEntry::parse() end retval=%x\n",retval)); @@ -4561,10 +4561,17 @@ void DocRoot::parse() while (retval==RetVal_Section) { SectionInfo *sec=Doxygen::sectionDict[g_token->sectionId]; - ASSERT(sec!=0); - DocSection *s=new DocSection(this,1,g_token->sectionId); - m_children.append(s); - retval = s->parse(); + if (sec) + { + DocSection *s=new DocSection(this,1,g_token->sectionId); + m_children.append(s); + retval = s->parse(); + } + else + { + warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Invalid anchor id `%s'",g_token->sectionId.data()); + retval = 0; + } } if (retval==RetVal_Internal) |