@@ -807,9 +807,9 @@ end function get_range_idx_impl
807
807
! > Version: experimental
808
808
! >
809
809
! > Removes strings present at indexes in interval ['first', 'last']
810
- ! > Stores captured popped strings in array 'capture_popped '
810
+ ! > Stores popped strings in array 'popped_strings '
811
811
! > No return
812
- pure subroutine pop_drop_engine ( list , first , last , capture_popped )
812
+ pure subroutine pop_drop_engine ( list , first , last , popped_strings )
813
813
class(stringlist_type), intent (inout ) :: list
814
814
type (stringlist_index_type), intent (in ) :: first, last
815
815
type (string_type), allocatable , intent (out ), optional :: popped_strings(:)
@@ -835,9 +835,9 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
835
835
end do
836
836
837
837
! capture popped strings
838
- if ( present (capture_popped ) ) then
838
+ if ( present (popped_strings ) ) then
839
839
call get_engine( list, shift( first, from - firstn ), &
840
- & shift( last, lastn - to ), capture_popped )
840
+ & shift( last, lastn - to ), popped_strings )
841
841
end if
842
842
843
843
inew = from
@@ -848,8 +848,8 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
848
848
849
849
call move_alloc( new_stringarray, list% stringarray )
850
850
else
851
- if ( present (capture_popped ) ) then
852
- allocate ( capture_popped (0 ) )
851
+ if ( present (popped_strings ) ) then
852
+ allocate ( popped_strings (0 ) )
853
853
end if
854
854
end if
855
855
0 commit comments