json_kinds Module

JSON-Fortran kind definitions.

License

  • JSON-Fortran is released under a BSD-style license. See the LICENSE file for details.


Uses

  • module~~json_kinds~~UsesGraph module~json_kinds json_kinds iso_fortran_env iso_fortran_env module~json_kinds->iso_fortran_env

Used by

  • module~~json_kinds~~UsedByGraph module~json_kinds json_kinds module~json_parameters json_parameters module~json_parameters->module~json_kinds module~json_string_utilities json_string_utilities module~json_string_utilities->module~json_kinds module~json_string_utilities->module~json_parameters module~json_value_module json_value_module module~json_value_module->module~json_kinds module~json_value_module->module~json_parameters module~json_value_module->module~json_string_utilities module~json_module json_module module~json_module->module~json_kinds module~json_module->module~json_parameters module~json_module->module~json_value_module module~json_file_module json_file_module module~json_module->module~json_file_module module~json_file_module->module~json_kinds module~json_file_module->module~json_parameters module~json_file_module->module~json_string_utilities module~json_file_module->module~json_value_module

Contents


Variables

TypeVisibility AttributesNameInitial
integer, public, parameter:: CDK =selected_char_kind('DEFAULT')

Processor dependendant 'DEFAULT' character kind. This is 1 byte for the Intel and Gfortran compilers.

integer, public, parameter:: CK =selected_char_kind(json_fortran_string_kind)

Default character kind used by JSON-Fortran. If ISO 10646 (UCS4) support is available, use that, otherwise, gracefully fall back on 'DEFAULT' characters. Currently only gfortran >= 4.9.2 will correctly support UCS4 which is stored in 4 bytes. (and perhaps others).

integer, public, parameter:: IK =int32

Default integer kind if not specified [4 bytes]

integer, public, parameter:: LK =logical_kinds(min(3, size(logical_kinds)))

Default logical kind. This is 4 bytes for the Intel and Gfortran compilers (and perhaps others). The declaration ensures a valid kind if the compiler doesn't have a logical_kinds(3).

integer, public, parameter:: RK =real64

Default real kind if not specified [8 bytes]

character(kind=CDK,len=*), private, parameter:: json_fortran_string_kind ='DEFAULT'

String kind preprocessor macro. this is the string kind to use unless compiling with GFortran AND UCS4/ISO 10646 support is requested