@@ -296,16 +296,25 @@ module json_value_module
296
296
json_get_string, MAYBEWRAP(json_get_string_with_path), &
297
297
json_get_string_vec, MAYBEWRAP(json_get_string_vec_with_path), &
298
298
json_get_array, MAYBEWRAP(json_get_array_with_path)
299
+ procedure ,private :: json_get_integer
300
+ procedure ,private :: json_get_integer_vec
301
+ procedure ,private :: json_get_double
302
+ procedure ,private :: json_get_double_vec
303
+ procedure ,private :: json_get_logical
304
+ procedure ,private :: json_get_logical_vec
305
+ procedure ,private :: json_get_string
306
+ procedure ,private :: json_get_string_vec
307
+ procedure ,private :: json_get_array
299
308
procedure ,private :: MAYBEWRAP(json_get_by_path)
300
- procedure ,private :: json_get_integer, MAYBEWRAP(json_get_integer_with_path)
301
- procedure ,private :: json_get_integer_vec, MAYBEWRAP(json_get_integer_vec_with_path)
302
- procedure ,private :: json_get_double, MAYBEWRAP(json_get_double_with_path)
303
- procedure ,private :: json_get_double_vec, MAYBEWRAP(json_get_double_vec_with_path)
304
- procedure ,private :: json_get_logical, MAYBEWRAP(json_get_logical_with_path)
305
- procedure ,private :: json_get_logical_vec, MAYBEWRAP(json_get_logical_vec_with_path)
306
- procedure ,private :: json_get_string, MAYBEWRAP(json_get_string_with_path)
307
- procedure ,private :: json_get_string_vec, MAYBEWRAP(json_get_string_vec_with_path)
308
- procedure ,private :: json_get_array, MAYBEWRAP(json_get_array_with_path)
309
+ procedure ,private :: MAYBEWRAP(json_get_integer_with_path)
310
+ procedure ,private :: MAYBEWRAP(json_get_integer_vec_with_path)
311
+ procedure ,private :: MAYBEWRAP(json_get_double_with_path)
312
+ procedure ,private :: MAYBEWRAP(json_get_double_vec_with_path)
313
+ procedure ,private :: MAYBEWRAP(json_get_logical_with_path)
314
+ procedure ,private :: MAYBEWRAP(json_get_logical_vec_with_path)
315
+ procedure ,private :: MAYBEWRAP(json_get_string_with_path)
316
+ procedure ,private :: MAYBEWRAP(json_get_string_vec_with_path)
317
+ procedure ,private :: MAYBEWRAP(json_get_array_with_path)
309
318
310
319
procedure ,public :: print_to_string = > json_value_to_string ! ! Print the [[json_value]] structure to an allocatable string
311
320
@@ -321,7 +330,8 @@ module json_value_module
321
330
! call json%print(p,'test.json') !this is [[json_print_2]]
322
331
! ````
323
332
generic,public :: print = > json_print_1,json_print_2
324
- procedure :: json_print_1,json_print_2
333
+ procedure :: json_print_1
334
+ procedure :: json_print_2
325
335
326
336
! >
327
337
! Destructor routine for a [[json_value]] pointer.
@@ -478,7 +488,8 @@ module json_value_module
478
488
! >
479
489
! Parse the JSON file and populate the [[json_value]] tree.
480
490
generic,public :: parse = > json_parse_file, MAYBEWRAP(json_parse_string)
481
- procedure :: json_parse_file, MAYBEWRAP(json_parse_string)
491
+ procedure :: json_parse_file
492
+ procedure :: MAYBEWRAP(json_parse_string)
482
493
483
494
! >
484
495
! Throw an exception.
@@ -892,7 +903,7 @@ subroutine json_throw_exception(json,msg)
892
903
write (* ,' (A)' ) ' JSON-Fortran Exception: ' // trim (msg)
893
904
! call backtrace() ! gfortran (use -fbacktrace -fall-intrinsics flags)
894
905
#ifdef __INTEL_COMPILER
895
- call tracebackqq(- 1 ) ! print a traceback and return
906
+ call tracebackqq(user_exit_code = -1 ) ! print a traceback and return
896
907
#endif
897
908
write (* ,' (A)' ) ' ***********************'
898
909
end if
0 commit comments