@@ -137,9 +137,14 @@ module stdlib_system
137
137
! ! version: experimental
138
138
! !
139
139
! ! A helper function for returning the `type(state_type)` with the flag `STDLIB_FS_ERROR` set.
140
- ! ! `FS_ERROR_CODE` also prefixes the `code` passed to it as the first argument
141
140
! !
142
- public :: FS_ERROR, FS_ERROR_CODE
141
+ public :: fs_error
142
+ ! ! version: experimental
143
+ ! !
144
+ ! ! A helper function for returning the `type(state_type)` with the flag `STDLIB_FS_ERROR` set.
145
+ ! ! It also formats and prefixes the `code` passed to it as the first argument
146
+ ! !
147
+ public :: fs_error_code
143
148
144
149
! CPU clock ticks storage
145
150
integer , parameter , private :: TICKS = int64
@@ -777,7 +782,7 @@ subroutine delete_file(path, err)
777
782
end if
778
783
end subroutine delete_file
779
784
780
- pure function FS_ERROR_CODE (code ,a1 ,a2 ,a3 ,a4 ,a5 ,a6 ,a7 ,a8 ,a9 ,a10 , &
785
+ pure function fs_error_code (code ,a1 ,a2 ,a3 ,a4 ,a5 ,a6 ,a7 ,a8 ,a9 ,a10 , &
781
786
a11 ,a12 ,a13 ,a14 ,a15 ,a16 ,a17 ,a18 ) result(state)
782
787
783
788
type (state_type) :: state
@@ -789,9 +794,9 @@ pure function FS_ERROR_CODE(code,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10, &
789
794
790
795
state = state_type(STDLIB_FS_ERROR, " code -" , to_string(code)// " ," ,a1,a2,a3,a4,a5,a6,a7,a8, &
791
796
a9,a10,a11,a12,a13,a14,a15,a16,a17,a18)
792
- end function FS_ERROR_CODE
797
+ end function fs_error_code
793
798
794
- pure function FS_ERROR (a1 ,a2 ,a3 ,a4 ,a5 ,a6 ,a7 ,a8 ,a9 ,a10 ,a11 , &
799
+ pure function fs_error (a1 ,a2 ,a3 ,a4 ,a5 ,a6 ,a7 ,a8 ,a9 ,a10 ,a11 , &
795
800
a12 ,a13 ,a14 ,a15 ,a16 ,a17 ,a18 ,a19 ,a20 ) result(state)
796
801
797
802
type (state_type) :: state
@@ -801,6 +806,6 @@ pure function FS_ERROR(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11, &
801
806
802
807
state = state_type(STDLIB_FS_ERROR, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12, &
803
808
a13,a14,a15,a16,a17,a18,a19,a20)
804
- end function FS_ERROR
809
+ end function fs_error
805
810
806
811
end module stdlib_system
0 commit comments