File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ recursive function info_build_target(t) result(s)
207
207
s = s // ' output_file="' // t% output_file // ' "'
208
208
! type(srcfile_t), allocatable :: source
209
209
if (allocated (t% source)) then
210
- s = s // " , source=" // info_srcfile (t% source)
210
+ s = s // " , source=" // info_srcfile_short (t% source)
211
211
else
212
212
s = s // " , source=()"
213
213
end if
@@ -355,6 +355,16 @@ function info_srcfile(source) result(s)
355
355
s = s // " )"
356
356
end function
357
357
358
+ function info_srcfile_short (source ) result(s)
359
+ ! Prints a shortened version of srcfile_t
360
+ type (srcfile_t), intent (in ) :: source
361
+ character (:), allocatable :: s
362
+ integer :: i
363
+ s = " srcfile_t("
364
+ s = s // ' file_name="' // source% file_name // ' "'
365
+ s = s // " , ...)"
366
+ end function
367
+
358
368
function info_model (model ) result(s)
359
369
type (fpm_model_t), intent (in ) :: model
360
370
character (:), allocatable :: s
You can’t perform that action at this time.
0 commit comments