fdoc

subroutineadd_statspure

pure subroutine add_stats(total, item)

Add the counts of item to total.

Arguments

NameTypeIntentAttributesDescription
totaltype(file_stats_t)inout

the total

itemtype(file_stats_t)in

what to add

Source

Show the code
pure subroutine add_stats(total, item)
    type(file_stats_t), intent(inout) :: total  !! the total
    type(file_stats_t), intent(in) :: item      !! what to add

    total%lines = total%lines + item%lines
    total%code = total%code + item%code
    total%comments = total%comments + item%comments
    total%blank = total%blank + item%blank
    total%procedures = total%procedures + item%procedures
    total%bytes = total%bytes + item%bytes
end subroutine add_stats

Graphs

Called by