-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depgen.py: add basic support for Fortran submodules.
- Loading branch information
Showing
6 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module mo_test_submodule | ||
implicit none | ||
public | ||
|
||
interface | ||
module subroutine print_hello_subroutine() | ||
end subroutine print_hello_subroutine | ||
|
||
module function print_hello_function() | ||
integer :: print_hello_function | ||
end function print_hello_function | ||
end interface | ||
|
||
contains | ||
subroutine print_hello() | ||
print *, "Hello from submodule test (parent module)." | ||
end subroutine print_hello | ||
end module mo_test_submodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
submodule (mo_test_submodule) submo_test_submodule | ||
implicit none | ||
|
||
contains | ||
module subroutine print_hello_subroutine() | ||
print *, "Hello from submodule test (submodule subroutine)." | ||
end subroutine print_hello_subroutine | ||
|
||
module function print_hello_function() | ||
integer :: print_hello_function | ||
print_hello_function = 0 | ||
print *, "Hello from submodule test (submodule function)." | ||
end function print_hello_function | ||
end submodule submo_test_submodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters