Dump compile_command_table_t to a toml array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(compile_command_table_t), | intent(inout) | :: | self | Instance of the serializable object | ||
| type(toml_array), | intent(inout) | :: | array | Data structure | ||
| type(error_t), | intent(out), | allocatable | :: | error | Error handling | 
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | ii | ||||
| type(toml_table), | public, | pointer | :: | item | |||
| integer, | public | :: | stat | 
subroutine cct_dump_array(self, array, error) !> Instance of the serializable object class(compile_command_table_t), intent(inout) :: self !> Data structure type(toml_array), intent(inout) :: array !> Error handling type(error_t), allocatable, intent(out) :: error integer :: ii, stat type(toml_table), pointer :: item if (.not.allocated(self%command)) return do ii = 1, size(self%command) associate (cmd => self%command(ii)) ! Set node for this command call add_table(array, item, stat) if (stat /= toml_stat%success) then call fatal_error(error, "Cannot store entry in compile_command_table_t array") return end if call cmd%dump_to_toml(item, error) if (allocated(error)) return endassociate end do end subroutine cct_dump_array