fdoc

subroutinefile_bodyprivate

subroutine file_body(site, id, b)

Write what is specific to a source file.

Arguments

NameTypeIntentAttributesDescription
sitetype(site_t)in

the site

idintegerin

the file

btype(buffer_t)inout

the HTML

Calls

Called by

Source

Show the code
subroutine file_body(site, id, b)
    type(site_t), intent(in) :: site        !! the site
    integer, intent(in) :: id               !! the file
    type(buffer_t), intent(inout) :: b      !! the HTML
    integer, allocatable :: units(:)
    integer :: k

    associate (e => site%p%list%box(id)%e)
        allocate (units(0))
        do k = 1, size(e%children)
            associate (c => site%p%list%box(e%children(k))%e)
                select case (c%kind)
                case (E_MODULE, E_SUBMODULE, E_PROGRAM, E_BLOCKDATA, E_SUBROUTINE, E_FUNCTION)
                    call push_int(units, e%children(k))
                end select
            end associate
        end do
        call summary_section(site, 'Contents', units, b)
    end associate
end subroutine file_body