Skip to content

Commit 44d2b3c

Browse files
committed
cleanup
1 parent 54528c6 commit 44d2b3c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/fpm_source_parsing.f90

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -646,14 +646,10 @@ subroutine parse_use_statement(f_filename,i,line,use_stmt,is_intrinsic,module_na
646646
colons = index(lowercase,'::')
647647
nonintr = 0
648648
intr = 0
649-
intrinsicness: if (colons>3) then
650649

651-
end if intrinsicness
650+
have_colons: if (colons>3) then
652651

653-
! If declared intrinsic, check that it is true
654-
if (colons>3) then
655-
656-
! If there is an intrinsic/non-intrinsic spec
652+
! there may be an intrinsic/non-intrinsic spec
657653
nonintr = index(lowercase(1:colons-1),'non_intrinsic')
658654
if (nonintr==0) intr = index(lowercase(1:colons-1),'intrinsic')
659655

@@ -684,7 +680,7 @@ subroutine parse_use_statement(f_filename,i,line,use_stmt,is_intrinsic,module_na
684680
return
685681
end if
686682

687-
end if
683+
end if have_colons
688684

689685
! If declared intrinsic, check that it is true
690686
has_intrinsic_name = any([(index(module_name,trim(INTRINSIC_NAMES(j)))>0, &

0 commit comments

Comments
 (0)