@@ -807,9 +807,9 @@ end function get_range_idx_impl
807807 ! > Version: experimental
808808 ! >
809809 ! > 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 '
811811 ! > No return
812- pure subroutine pop_drop_engine ( list , first , last , capture_popped )
812+ pure subroutine pop_drop_engine ( list , first , last , popped_strings )
813813 class(stringlist_type), intent (inout ) :: list
814814 type (stringlist_index_type), intent (in ) :: first, last
815815 type (string_type), allocatable , intent (out ), optional :: popped_strings(:)
@@ -835,9 +835,9 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
835835 end do
836836
837837 ! capture popped strings
838- if ( present (capture_popped ) ) then
838+ if ( present (popped_strings ) ) then
839839 call get_engine( list, shift( first, from - firstn ), &
840- & shift( last, lastn - to ), capture_popped )
840+ & shift( last, lastn - to ), popped_strings )
841841 end if
842842
843843 inew = from
@@ -848,8 +848,8 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
848848
849849 call move_alloc( new_stringarray, list% stringarray )
850850 else
851- if ( present (capture_popped ) ) then
852- allocate ( capture_popped (0 ) )
851+ if ( present (popped_strings ) ) then
852+ allocate ( popped_strings (0 ) )
853853 end if
854854 end if
855855
0 commit comments