@@ -137,9 +137,14 @@ module stdlib_system
137137! ! version: experimental
138138! !
139139! ! 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
141140! !
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
143148
144149! CPU clock ticks storage
145150integer , parameter , private :: TICKS = int64
@@ -777,7 +782,7 @@ subroutine delete_file(path, err)
777782 end if
778783end subroutine delete_file
779784
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 , &
781786 a11 ,a12 ,a13 ,a14 ,a15 ,a16 ,a17 ,a18 ) result(state)
782787
783788 type (state_type) :: state
@@ -789,9 +794,9 @@ pure function FS_ERROR_CODE(code,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10, &
789794
790795 state = state_type(STDLIB_FS_ERROR, " code -" , to_string(code)// " ," ,a1,a2,a3,a4,a5,a6,a7,a8, &
791796 a9,a10,a11,a12,a13,a14,a15,a16,a17,a18)
792- end function FS_ERROR_CODE
797+ end function fs_error_code
793798
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 , &
795800 a12 ,a13 ,a14 ,a15 ,a16 ,a17 ,a18 ,a19 ,a20 ) result(state)
796801
797802 type (state_type) :: state
@@ -801,6 +806,6 @@ pure function FS_ERROR(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11, &
801806
802807 state = state_type(STDLIB_FS_ERROR, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12, &
803808 a13,a14,a15,a16,a17,a18,a19,a20)
804- end function FS_ERROR
809+ end function fs_error
805810
806811end module stdlib_system
0 commit comments