summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-01-28 18:16:38 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-01-28 18:16:38 (GMT)
commit9d98e802c931c7d358c55c2f69dabdef78b1fb62 (patch)
tree26b976ebd24f845a5cf88ab76f81f928c47c4548 /src/scanner.l
parentcbf50dc79a88d3710287b312996da56f97154c56 (diff)
downloadDoxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.zip
Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.gz
Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.bz2
Release-1.2.4-20010128
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 2243676..9ff3bbc 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -273,6 +273,7 @@ static void addSection()
warn(yyFileName,yyLineNr,
"Warning: Duplicate label %s found!",sectionLabel.data());
}
+ sectionTitle.resize(0);
}
// Adds a formula text to the list/dictionary of formulas if it was
@@ -1385,6 +1386,7 @@ TITLE [tT][iI][tT][lL][eE]
current->name.resize(0);
current->args.resize(0);
current->initializer.resize(0);
+ current->bitfields.resize(0);
int i=oldType.length();
while (i>0 && (oldType[i-1]=='*' || oldType[i-1]=='&' || oldType[i-1]==' ')) i--;
current->type = oldType.left(i);
@@ -3085,8 +3087,8 @@ TITLE [tT][iI][tT][lL][eE]
<SectionTitle>[^\n*]*/"\n" {
sectionTitle+=yytext;
sectionTitle=sectionTitle.stripWhiteSpace();
- addSection();
current->doc += "\\section "+sectionLabel+"\n";
+ addSection();
BEGIN(PageDoc);
}
<SectionTitle>"*" {