Skip to content

Commit 457b8fd

Browse files
committed
Merge pull request #78 from kmanalo/master
NAG Fortran Errors on 'module procedure ::' change to 'module procedure' with no double colon
2 parents 587bced + 8afd02e commit 457b8fd

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

src/json_module.f90

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,11 @@ end subroutine array_callback_func
415415
!
416416
! SOURCE
417417
interface json_add
418-
module procedure :: json_value_add_member
419-
module procedure :: json_value_add_integer, json_value_add_integer_vec
420-
module procedure :: json_value_add_double, json_value_add_double_vec
421-
module procedure :: json_value_add_logical, json_value_add_logical_vec
422-
module procedure :: json_value_add_string, json_value_add_string_vec
418+
module procedure json_value_add_member
419+
module procedure json_value_add_integer, json_value_add_integer_vec
420+
module procedure json_value_add_double, json_value_add_double_vec
421+
module procedure json_value_add_logical, json_value_add_logical_vec
422+
module procedure json_value_add_string, json_value_add_string_vec
423423
end interface json_add
424424
!*************************************************************************************
425425

@@ -442,10 +442,10 @@ end subroutine array_callback_func
442442
!
443443
! SOURCE
444444
interface json_update
445-
module procedure :: json_update_logical,&
446-
json_update_double,&
447-
json_update_integer,&
448-
json_update_string
445+
module procedure json_update_logical,&
446+
json_update_double,&
447+
json_update_integer,&
448+
json_update_string
449449
end interface json_update
450450
!*************************************************************************************
451451

@@ -460,12 +460,12 @@ end subroutine array_callback_func
460460
!
461461
! SOURCE
462462
interface json_get
463-
module procedure :: json_get_by_path
464-
module procedure :: json_get_integer, json_get_integer_vec
465-
module procedure :: json_get_double, json_get_double_vec
466-
module procedure :: json_get_logical, json_get_logical_vec
467-
module procedure :: json_get_string, json_get_string_vec
468-
module procedure :: json_get_array
463+
module procedure json_get_by_path
464+
module procedure json_get_integer, json_get_integer_vec
465+
module procedure json_get_double, json_get_double_vec
466+
module procedure json_get_logical, json_get_logical_vec
467+
module procedure json_get_string, json_get_string_vec
468+
module procedure json_get_array
469469
end interface json_get
470470
!*************************************************************************************
471471

@@ -480,7 +480,7 @@ end subroutine array_callback_func
480480
!
481481
! SOURCE
482482
interface json_print_to_string
483-
module procedure :: json_value_to_string
483+
module procedure json_value_to_string
484484
end interface
485485
!*************************************************************************************
486486

@@ -501,8 +501,8 @@ end subroutine array_callback_func
501501
!
502502
! SOURCE
503503
interface json_print
504-
module procedure :: json_print_1 !input is unit number
505-
module procedure :: json_print_2 !input is file name
504+
module procedure json_print_1 !input is unit number
505+
module procedure json_print_2 !input is file name
506506
end interface
507507
!*************************************************************************************
508508

@@ -546,7 +546,7 @@ end subroutine array_callback_func
546546
!
547547
! SOURCE
548548
interface json_destroy
549-
module procedure :: json_value_destroy
549+
module procedure json_value_destroy
550550
end interface
551551
!*************************************************************************************
552552

@@ -561,7 +561,7 @@ end subroutine array_callback_func
561561
!
562562
! SOURCE
563563
interface json_remove
564-
module procedure :: json_value_remove
564+
module procedure json_value_remove
565565
end interface
566566
!*************************************************************************************
567567

@@ -576,7 +576,7 @@ end subroutine array_callback_func
576576
!
577577
! SOURCE
578578
interface json_remove_if_present
579-
module procedure :: json_value_remove_if_present
579+
module procedure json_value_remove_if_present
580580
end interface
581581
!*************************************************************************************
582582

@@ -4285,11 +4285,12 @@ subroutine get_current_line_from_file(iunit,line)
42854285
![the line is read in chunks until the end of the line is reached]
42864286
if (istat==0) then
42874287
do
4288+
isize=0
42884289
read(iunit,fmt=nfmt,advance='NO',size=isize,iostat=istat) chunk
42894290
if (istat==0) then
42904291
line = line//chunk
42914292
else
4292-
if (isize>0) line = line//chunk(1:isize)
4293+
if (isize>0 .and. isize<=n_chunk) line = line//chunk(1:isize)
42934294
exit
42944295
end if
42954296
end do

0 commit comments

Comments
 (0)