Permalink
Browse files

Fortran inline source code and crash on Linux

This patch fixes a problem on Linux where in a number of cases doxygen crashed when an unnamed interface existed and the routine itself was in the same source file.
Furthermore the end line of routines is set correctly so  inline source code in Fortran will be possible as well.
  • Loading branch information...
albert-github committed Jan 2, 2016
1 parent 295a467 commit 661991e55f7ae18e8143733f364d9d7864ec66d9
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/fortranscanner.l
@@ -686,9 +686,12 @@ private {
// in a scope of their own, even if multiple
// are group in one INTERFACE/END INTERFACE block.
//
last_entry->endBodyLine = yyLineNr - 1;
if (ifType == IF_ABSTRACT || ifType == IF_SPECIFIC)
{
endScope(current_root);
last_entry->endBodyLine = yyLineNr - 1;
}
current_root->endBodyLine = yyLineNr - 1;
if (!endScope(current_root))
yyterminate();

0 comments on commit 661991e

Please sign in to comment.