diff options
Diffstat (limited to 'src/fortrancode.l')
-rw-r--r-- | src/fortrancode.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l index 9ddcd17..12ad042 100644 --- a/src/fortrancode.l +++ b/src/fortrancode.l @@ -695,7 +695,7 @@ LANGUAGE_BIND_SPEC BIND{BS}"("{BS}C{BS}(,{BS}NAME{BS}"="{BS}"\""(.*)"\""{BS})?") yyextra->contLineNr++; if (Config_getBool(STRIP_CODE_COMMENTS)) { - yyextra->yyLineNr+=((QCString)yyextra->docBlock).contains('\n'); + yyextra->yyLineNr+=yyextra->docBlock.contains('\n'); yyextra->yyLineNr+=1; nextCodeLine(yyscanner); yyextra->endComment=TRUE; @@ -1029,7 +1029,7 @@ static void writeMultiLineCodeLink(yyscan_t yyscanner,CodeOutputInterface &ol, Definition *d,const QCString &text) { struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; - static bool sourceTooltips = Config_getBool(SOURCE_TOOLTIPS); + bool sourceTooltips = Config_getBool(SOURCE_TOOLTIPS); yyextra->tooltipManager.addTooltip(ol,d); QCString ref = d->getReference(); QCString file = d->getOutputFileBase(); @@ -1523,7 +1523,7 @@ void FortranCodeParser::parseCode(CodeOutputInterface & codeOutIntf, { endCodeLine(yyscanner); } - if (isExampleBlock && yyextra->sourceFileDef) + if (!fileDef && isExampleBlock && yyextra->sourceFileDef) { // delete the temporary file definition used for this example delete yyextra->sourceFileDef; |