Skip to content

Commit 8710c16

Browse files
committed
replaced some *s with output_unit.
minor commenting updates.
1 parent 634af4d commit 8710c16

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/json_string_utilities.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ pure function valid_json_hex(str) result(valid)
461461
integer(IK) :: n !! length of `str`
462462
integer(IK) :: i !! counter
463463

464-
!an array of the valid hex characters:
464+
!> an array of the valid hex characters
465465
character(kind=CK,len=1),dimension(22),parameter :: valid_chars = &
466466
[ (achar(i),i=48,57), & ! decimal digits
467467
(achar(i),i=65,70), & ! capital A-F

src/json_value_module.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ subroutine json_initialize(json,verbose,compact_reals,&
672672

673673
!
674674
!JW comment out for now (these are now protected variables in another module)
675-
! for thread-save version, we won't be able to have global variables.........
675+
! for thread-safe version, we won't be able to have global variables.........
676676
!
677677
!Ensure gfortran bug work around "parameters" are set properly
678678
!null_str = 'null'
@@ -1001,13 +1001,13 @@ subroutine json_throw_exception(json,msg)
10011001
json%err_message = trim(msg)
10021002

10031003
if (json%is_verbose) then
1004-
write(*,'(A)') '***********************'
1005-
write(*,'(A)') 'JSON-Fortran Exception: '//trim(msg)
1004+
write(output_unit,'(A)') '***********************'
1005+
write(output_unit,'(A)') 'JSON-Fortran Exception: '//trim(msg)
10061006
!call backtrace() ! gfortran (use -fbacktrace -fall-intrinsics flags)
10071007
#ifdef __INTEL_COMPILER
10081008
call tracebackqq(user_exit_code=-1) ! print a traceback and return
10091009
#endif
1010-
write(*,'(A)') '***********************'
1010+
write(output_unit,'(A)') '***********************'
10111011
end if
10121012

10131013
end subroutine json_throw_exception
@@ -5932,7 +5932,7 @@ subroutine json_print_error_message(json,io_unit)
59325932
if (present(io_unit)) then
59335933
write(io_unit,'(A)') error_msg
59345934
else
5935-
write(*,'(A)') error_msg
5935+
write(output_unit,'(A)') error_msg
59365936
end if
59375937
deallocate(error_msg)
59385938
call json%clear_exceptions()

0 commit comments

Comments
 (0)