Skip to content

Commit df150f2

Browse files
committed
sort_sign: remove module subroutines when inappropriate
1 parent 940b6fc commit df150f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/stdlib_sorting_ord_sort.fypp

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ contains
8484
#:for sname, signt, signoppt in SIGN_NAME_TYPE
8585
#:for k1, t1 in IRS_KINDS_TYPES
8686

87-
module subroutine ${k1}$_${sname}$_ord_sort( array, work )
87+
subroutine ${k1}$_${sname}$_ord_sort( array, work )
8888
! A translation to Fortran 2008, of the `"Rust" sort` algorithm found in
8989
! `slice.rs`
9090
! https://github.com/rust-lang/rust/blob/90eb44a5897c39e3dff9c7e48e3973671dcd9496/src/liballoc/slice.rs#L2159
@@ -443,7 +443,7 @@ contains
443443

444444

445445
#:for sname, signt, signoppt in SIGN_NAME_TYPE
446-
module subroutine char_${sname}$_ord_sort( array, work )
446+
subroutine char_${sname}$_ord_sort( array, work )
447447
! A translation to Fortran 2008, of the `"Rust" sort` algorithm found in
448448
! `slice.rs`
449449
! https://github.com/rust-lang/rust/blob/90eb44a5897c39e3dff9c7e48e3973671dcd9496/src/liballoc/slice.rs#L2159

Diff for: src/stdlib_sorting_sort.fypp

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ contains
8686
#:for sname, signt, signoppt in SIGN_NAME_TYPE
8787
#:for k1, t1 in IRS_KINDS_TYPES
8888

89-
pure module subroutine ${k1}$_${sname}$_sort( array )
89+
pure subroutine ${k1}$_${sname}$_sort( array )
9090
! `${k1}$_sort( array )` sorts the input `ARRAY` of type `${t1}$`
9191
! using a hybrid sort based on the `introsort` of David Musser. As with
9292
! `introsort`, `${k1}$_sort( array )` is an unstable hybrid comparison
@@ -274,7 +274,7 @@ contains
274274

275275

276276
#:for sname, signt, signoppt in SIGN_NAME_TYPE
277-
pure module subroutine char_${sname}$_sort( array )
277+
pure subroutine char_${sname}$_sort( array )
278278
! `char_sort( array )` sorts the input `ARRAY` of type `CHARACTER(*)`
279279
! using a hybrid sort based on the `introsort` of David Musser. As with
280280
! `introsort`, `char_sort( array )` is an unstable hybrid comparison

0 commit comments

Comments
 (0)