Skip to content

Commit 0350e7b

Browse files
Ian PorterIan Porter
authored andcommitted
2 parents c97bd7a + 7807370 commit 0350e7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2615
-542
lines changed

.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.10.0
1+
7.0.0

CHANGELOG.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- [Change Log](#change-log)
66
- [Unreleased](#unreleased)
7+
- [7.0.0 (2019-01-26)](#700-2019-01-26)
8+
- [6.11.0 (2019-01-19)](#611-2019-01-19)
79
- [6.10.0 (2019-10-20)](#610-2019-10-20)
810
- [6.9.0 (2018-07-29)](#690-2018-07-29)
911
- [6.8.0 (2018-07-19)](#680-2018-07-19)
@@ -33,7 +35,38 @@
3335

3436
### [Unreleased](https://github.com/jacobwilliams/json-fortran/tree/HEAD)
3537

36-
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/6.10.0...HEAD)
38+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/7.0.0...HEAD)
39+
40+
### [7.0.0](https://github.com/jacobwilliams/json-fortran/tree/7.0.0) (2019-01-26)
41+
42+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/6.11.0...7.0.0)
43+
or [Download v7.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/7.0.0)
44+
45+
**Enhancements:**
46+
47+
- Added support for multiple real kinds:
48+
* The library now supports the default real kind specified (`real32`, `real64` and `real128`) as well as the kinds in this set with less precision than the default. For example, if `real64` is specified (which is the default), then both `real32` and `real64` are available in all the public APIs. Internally, the values are always stored in a variable of the default kind. [\#386](https://github.com/jacobwilliams/json-fortran/issues/386) [\#387](https://github.com/jacobwilliams/json-fortran/pull/387) ([jacobwilliams](https://github.com/jacobwilliams))
49+
* Added a `create_real()` method and a `json_real` parameter to replace `create_double()` and `json_double`. The old versions are still available for backward compatibility.
50+
* Added CMake options to control integer and real kinds [\#284](https://github.com/jacobwilliams/json-fortran/issues/284)
51+
* Updated the default real format statement to correctly correspond to the specified real kind.
52+
- Added new `json_file` constructor functions for strings. This allows a `json_file` to be initialized using syntax such as: `f = json_file('{"x": 1}')`. [\#381](https://github.com/jacobwilliams/json-fortran/issues/381) [\#382](https://github.com/jacobwilliams/json-fortran/pull/382) ([jacobwilliams](https://github.com/jacobwilliams))
53+
- Fixed some links in the documentation.
54+
55+
**Bug fixes:**
56+
57+
- Fixed an issue where the parser would fail if the JSON structure was just a lone integer. [\#388](https://github.com/jacobwilliams/json-fortran/issues/388) [\#389](https://github.com/jacobwilliams/json-fortran/pull/389) ([jacobwilliams](https://github.com/jacobwilliams))
58+
- Fixed an issue where the unit tests did not compile when using `real32` or `real128`. [\#383](https://github.com/jacobwilliams/json-fortran/issues/383) [\#384](https://github.com/jacobwilliams/json-fortran/pull/384) ([jacobwilliams](https://github.com/jacobwilliams))
59+
- Fixed various issues preventing compilation if the integer kind was changed from the default. [\#365](https://github.com/jacobwilliams/json-fortran/issues/365) [\#385](https://github.com/jacobwilliams/json-fortran/pull/385) ([jacobwilliams](https://github.com/jacobwilliams))
60+
- Renamed the integrated tests preprocessor flag to `INTEGRATED_TESTS` since it was mispelled. [\#390](https://github.com/jacobwilliams/json-fortran/issues/390) [\#391](https://github.com/jacobwilliams/json-fortran/pull/391) ([jacobwilliams](https://github.com/jacobwilliams))
61+
62+
### [6.11.0](https://github.com/jacobwilliams/json-fortran/tree/6.11.0) (2019-01-19)
63+
64+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/6.10.0...6.11.0)
65+
or [Download v6.11.0](https://github.com/jacobwilliams/json-fortran/releases/tag/6.11.0)
66+
67+
**Enhancements:**
68+
69+
- Speed up writing JSON to a string [\#377](https://github.com/jacobwilliams/json-fortran/issues/377) [\#378](https://github.com/jacobwilliams/json-fortran/pull/378) ([jacobwilliams](https://github.com/jacobwilliams))
3770

3871
### [6.10.0](https://github.com/jacobwilliams/json-fortran/tree/6.10.0) (2019-10-20)
3972

CMakeLists.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,32 @@ include ( "cmake/checkOutOfSource.cmake" )
3636
#---------------------
3737
project ( jsonfortran NONE )
3838

39+
#---------------------
40+
# Real and Integer kinds
41+
#---------------------
42+
43+
SET(JSON_REAL_KIND "REAL64" CACHE STRING "Real kind parameter")
44+
SET_PROPERTY(CACHE JSON_REAL_KIND PROPERTY STRINGS REAL32 REAL64 REAL128)
45+
if(${JSON_REAL_KIND} MATCHES "REAL32")
46+
add_definitions(-DREAL32)
47+
elseif(${JSON_REAL_KIND} MATCHES "REAL64")
48+
add_definitions(-DREAL64)
49+
elseif(${JSON_REAL_KIND} MATCHES "REAL128")
50+
add_definitions(-DREAL128)
51+
endif()
52+
53+
SET(JSON_INT_KIND "INT32" CACHE STRING "Integer kind parameter")
54+
SET_PROPERTY(CACHE JSON_INT_KIND PROPERTY STRINGS INT8 INT16 INT32 INT64)
55+
if(${JSON_INT_KIND} MATCHES "INT8")
56+
add_definitions(-DINT8)
57+
elseif(${JSON_INT_KIND} MATCHES "INT16")
58+
add_definitions(-DINT16)
59+
elseif(${JSON_INT_KIND} MATCHES "INT32")
60+
add_definitions(-DINT32)
61+
elseif(${JSON_INT_KIND} MATCHES "INT64")
62+
add_definitions(-DINT64)
63+
endif()
64+
3965
#----------------------------------
4066
# Get version (semantic versioning)
4167
# C.F. semver.org

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
JSON-Fortran: A Fortran 2008 JSON API
22
<https://github.com/jacobwilliams/json-fortran>
33

4-
Copyright (c) 2014-2018, Jacob Williams
4+
Copyright (c) 2014-2019, Jacob Williams
55
All rights reserved.
66

77
Redistribution and use in source and binary forms, with or without modification,

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Download
4242
--------------------
4343

4444
[![GitHub release](https://img.shields.io/github/release/jacobwilliams/json-fortran.svg?style=plastic)](https://github.com/jacobwilliams/json-fortran/releases)
45-
[![homebrew version](https://img.shields.io/homebrew/v/json-fortran.svg?style=plastic)](http://braumeister.org/formula/json-fortran)
45+
[![homebrew version](https://img.shields.io/homebrew/v/json-fortran.svg?style=plastic)](https://formulae.brew.sh/formula/json-fortran)
4646

4747
Download the official versioned releases
4848
[here](https://github.com/jacobwilliams/json-fortran/releases/latest).
@@ -55,7 +55,7 @@ downloaded and installed with the [homebrew](http://brew.sh) package
5555
manager on Mac OS X. Once [homebrew](http://brew.sh) is installed,
5656
make sure that the formulae are up to date, view the package options
5757
and caveats, and install the
58-
[json-fortran formula](http://braumeister.org/formula/json-fortran):
58+
[json-fortran formula](https://formulae.brew.sh/formula/json-fortran):
5959

6060
```bash
6161
brew update
@@ -121,7 +121,7 @@ cmake_minimum_required ( VERSION 2.8.8 FATAL_ERROR )
121121
enable_language ( Fortran )
122122
project ( jf_test NONE )
123123
124-
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 6.10.0 REQUIRED )
124+
find_package ( jsonfortran-${CMAKE_Fortran_COMPILER_ID} 7.0.0 REQUIRED )
125125
include_directories ( "${jsonfortran_INCLUDE_DIRS}" )
126126
127127
file ( GLOB JF_TEST_SRCS "src/tests/jf_test_*.F90" )

json-fortran.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extra_filetypes: .inc !
2929
print_creation_date: true
3030
creation_date: %Y-%m-%d %H:%M %z
3131
extra_mods: iso_fortran_env:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html
32-
ifcore:https://software.intel.com/en-us/node/525900
32+
ifcore:https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-tracebackqq
3333
md_extensions: markdown.extensions.toc
3434
markdown.extensions.smarty
3535
---

pages/releases/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ documentation from the documentation for official releases other than
2525
using the browser's back button. Feel free to bookmark this page, or
2626
the [main project page](|url|/index.html) for convenient navigation.
2727

28+
* [7.0.0](http://jacobwilliams.github.io/json-fortran/7.0.0/index.html)
29+
([FORD](https://github.com/Fortran-FOSS-Programmers/ford) generated documentation)
30+
- [Download](https://github.com/jacobwilliams/json-fortran/releases/tag/7.0.0)
31+
* [6.11.0](http://jacobwilliams.github.io/json-fortran/6.11.0/index.html)
32+
([FORD](https://github.com/Fortran-FOSS-Programmers/ford) generated documentation)
33+
- [Download](https://github.com/jacobwilliams/json-fortran/releases/tag/6.11.0)
2834
* [6.10.0](http://jacobwilliams.github.io/json-fortran/6.10.0/index.html)
2935
([FORD](https://github.com/Fortran-FOSS-Programmers/ford) generated documentation)
3036
- [Download](https://github.com/jacobwilliams/json-fortran/releases/tag/6.10.0)

0 commit comments

Comments
 (0)