From 661991e55f7ae18e8143733f364d9d7864ec66d9 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 2 Jan 2016 15:29:51 +0100 Subject: 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. --- src/fortranscanner.l | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fortranscanner.l b/src/fortranscanner.l index bd1fe83..1e29bf6 100644 --- a/src/fortranscanner.l +++ b/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(); -- cgit v0.12