@@ -811,9 +811,9 @@ end function get_range_idx_impl
811
811
! > Version: experimental
812
812
! >
813
813
! > Removes strings present at indexes in interval ['first', 'last']
814
- ! > Stores captured popped strings in array 'capture_popped '
814
+ ! > Stores popped strings in array 'popped_strings '
815
815
! > No return
816
- pure subroutine pop_drop_engine ( list , first , last , capture_popped )
816
+ pure subroutine pop_drop_engine ( list , first , last , popped_strings )
817
817
class(stringlist_type), intent (inout ) :: list
818
818
type (stringlist_index_type), intent (in ) :: first, last
819
819
type (string_type), allocatable , intent (out ), optional :: popped_strings(:)
@@ -839,9 +839,9 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
839
839
end do
840
840
841
841
! capture popped strings
842
- if ( present (capture_popped ) ) then
842
+ if ( present (popped_strings ) ) then
843
843
call get_engine( list, shift( first, from - firstn ), &
844
- & shift( last, lastn - to ), capture_popped )
844
+ & shift( last, lastn - to ), popped_strings )
845
845
end if
846
846
847
847
inew = from
@@ -852,8 +852,8 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
852
852
853
853
call move_alloc( new_stringarray, list% stringarray )
854
854
else
855
- if ( present (capture_popped ) ) then
856
- allocate ( capture_popped (0 ) )
855
+ if ( present (popped_strings ) ) then
856
+ allocate ( popped_strings (0 ) )
857
857
end if
858
858
end if
859
859
0 commit comments