Skip to content

Commit 34285cd

Browse files
committed
added robodoc header to introspection program.
1 parent 8a2c83b commit 34285cd

File tree

1 file changed

+36
-18
lines changed

1 file changed

+36
-18
lines changed
Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,37 @@
1-
! This program is run when configuring the json-fortran build,
2-
! to determine whether or not ISO 10646/UCS4 characters are
3-
! supported by the compiler
4-
program test_iso_10646_support
5-
use iso_fortran_env ,only: output_unit, error_unit
6-
implicit none
7-
integer, parameter :: UCS4_K = selected_char_kind('ISO_10646')
1+
!*******************************************************************************************************
2+
!****u* JSON/test_iso_10646_support
3+
!
4+
! NAME
5+
! test_iso_10646_support
6+
!
7+
! DESCRIPTION
8+
! This program is run when configuring the json-fortran build,
9+
! to determine whether or not ISO 10646/UCS4 characters are
10+
! supported by the compiler.
11+
!
12+
! AUTHOR
13+
! Izaak Beekman
14+
!
15+
! SOURCE
816

9-
if ( UCS4_K == -1 ) then !Not supported!
10-
write(error_unit,'(A)') 'Your compiler does not support ISO 10646/UCS4 characters!'
11-
write(error_unit,'(A)') 'JSON-Fortran must/will be configured to use the "DEFAULT"'
12-
write(error_unit,'(A)') 'character set. (Should be "ASCII" on a reasonable system.)'
13-
stop 2
14-
else
15-
write(error_unit,'(A)') 'Congratulations! Your compiler supports ISO 10646/UCS4!'
16-
write(error_unit,'(A)') 'JSON-Fortran may be configured to enable UCS4 support.'
17-
write(output_unit,'(A)') 'UCS4_SUPPORTED'
18-
end if
19-
end program test_iso_10646_support
17+
program test_iso_10646_support
18+
19+
use iso_fortran_env ,only: output_unit, error_unit
20+
21+
implicit none
22+
23+
integer, parameter :: UCS4_K = selected_char_kind('ISO_10646')
24+
25+
if ( UCS4_K == -1 ) then !Not supported!
26+
write(error_unit,'(A)') 'Your compiler does not support ISO 10646/UCS4 characters!'
27+
write(error_unit,'(A)') 'JSON-Fortran must/will be configured to use the "DEFAULT"'
28+
write(error_unit,'(A)') 'character set. (Should be "ASCII" on a reasonable system.)'
29+
stop 2
30+
else
31+
write(error_unit,'(A)') 'Congratulations! Your compiler supports ISO 10646/UCS4!'
32+
write(error_unit,'(A)') 'JSON-Fortran may be configured to enable UCS4 support.'
33+
write(output_unit,'(A)') 'UCS4_SUPPORTED'
34+
end if
35+
36+
end program test_iso_10646_support
37+
!*******************************************************************************************************

0 commit comments

Comments
 (0)