File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,25 @@ function info_srcfile(source) result(s)
309
309
end do
310
310
s = s // " ]"
311
311
! integer :: unit_type = FPM_UNIT_UNKNOWN
312
- s = s // " , unit_type=" // str(source% unit_type)
312
+ s = s // " , unit_type="
313
+ select case (source% unit_type)
314
+ case (FPM_UNIT_UNKNOWN)
315
+ s = s // " FPM_UNIT_UNKNOWN"
316
+ case (FPM_UNIT_PROGRAM)
317
+ s = s // " FPM_UNIT_PROGRAM"
318
+ case (FPM_UNIT_MODULE)
319
+ s = s // " FPM_UNIT_MODULE"
320
+ case (FPM_UNIT_SUBMODULE)
321
+ s = s // " FPM_UNIT_SUBMODULE"
322
+ case (FPM_UNIT_SUBPROGRAM)
323
+ s = s // " FPM_UNIT_SUBPROGRAM"
324
+ case (FPM_UNIT_CSOURCE)
325
+ s = s // " FPM_UNIT_CSOURCE"
326
+ case (FPM_UNIT_CHEADER)
327
+ s = s // " FPM_UNIT_CHEADER"
328
+ case default
329
+ s = s // " INVALID"
330
+ end select
313
331
! type(string_t), allocatable :: modules_used(:)
314
332
s = s // " , modules_used=["
315
333
do i = 1 , size (source% modules_used)
You can’t perform that action at this time.
0 commit comments