Skip to content

Commit caf540c

Browse files
authored
Release cleanup (#104)
Updates version numbers, README.md documentation links, and adds C++ guards in core_json.h.
1 parent 9066f2c commit caf540c

35 files changed

+64
-33
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ jobs:
113113
uses: FreeRTOS/CI-CD-Github-Actions/memory_statistics@main
114114
with:
115115
config: .github/memory_statistics_config.json
116-
check_against: docs/doxygen/include/size_table.html
116+
check_against: docs/doxygen/include/size_table.md

.github/workflows/memory_statistics.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
uses: actions/upload-artifact@v2
2020
with:
2121
name: size_table
22-
path: size_table.html
22+
path: size_table.md

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log for coreJSON Library
22

3+
## v3.0.2 (July 2021)
4+
- [#100](https://github.com/FreeRTOS/coreJSON/pull/100) Fix overflow in skipOneHexEscape().
5+
- [#95](https://github.com/FreeRTOS/coreJSON/pull/95) Eliminate warnings when base char type is unsigned.
6+
- [#93](https://github.com/FreeRTOS/coreJSON/pull/93) Wrap query key separator macro with ifndef.
7+
38
## v3.0.1 (February 2021)
49
- [#86](https://github.com/FreeRTOS/coreJSON/pull/86) Fix MISRA 9.1 violation.
510
- [#84](https://github.com/FreeRTOS/coreJSON/pull/84), [#82](https://github.com/FreeRTOS/coreJSON/pull/82) and [#80](https://github.com/FreeRTOS/coreJSON/pull/80) Documentation updates and fixes.

README.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository contains the coreJSON library, a parser that strictly enforces t
44

55
This library has gone through code quality checks including verification that no function has a [GNU Complexity](https://www.gnu.org/software/complexity/manual/complexity.html) score over 8, and checks against deviations from mandatory rules in the [MISRA coding standard](https://www.misra.org.uk). Deviations from the MISRA C:2012 guidelines are documented under [MISRA Deviations](MISRA.md). This library has also undergone both static code analysis from [Coverity static analysis](https://scan.coverity.com/), and validation of memory safety through the [CBMC automated reasoning tool](https://www.cprover.org/cbmc/).
66

7-
See memory requirements for this library [here](https://docs.aws.amazon.com/embedded-csdk/202103.00/lib-ref/libraries/standard/coreJSON/docs/doxygen/output/html/index.html#json_memory_requirements).
7+
See memory requirements for this library [here](./docs/doxygen/include/size_table.md).
88

99
**coreJSON v3.0.0 [source code](https://github.com/FreeRTOS/coreJSON/tree/v3.0.0/source) is part of the [FreeRTOS 202012.00 LTS](https://github.com/FreeRTOS/FreeRTOS-LTS/tree/202012.00-LTS) release.**
1010

@@ -68,7 +68,19 @@ gcc -I source/include example.c source/core_json.c -o example
6868
gcc -I source/include -c source/core_json.c
6969
```
7070

71-
## Generating documentation
71+
## Documentation
72+
73+
### Existing documentation
74+
For pre-generated documentation, please see the documentation linked in the locations below:
75+
76+
| Location |
77+
| :-: |
78+
| [AWS IoT Device SDK for Embedded C](https://github.com/aws/aws-iot-device-sdk-embedded-C#releases-and-documentation) |
79+
| [FreeRTOS.org](https://freertos.org/Documentation/api-ref/coreJSON/docs/doxygen/output/html/index.html) |
80+
81+
Note that the latest included version of the coreJSON library may differ across repositories.
82+
83+
### Generating documentation
7284

7385
The Doxygen references were created using Doxygen version 1.8.20. To generate the
7486
Doxygen pages, please run the following command from the root of this repository:

docs/doxygen/config.doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "coreJSON"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "v3.0.1"
41+
PROJECT_NUMBER = "v3.0.2"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

docs/doxygen/pages.dox

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and no heap allocation, making it suitable for IoT microcontrollers, but also fu
1212
@section json_memory_requirements Memory Requirements
1313
@brief Memory requirements of the JSON library.
1414

15-
@include{doc} size_table.html
15+
@include{doc} size_table.md
1616

1717
@section json_design Design
1818
@brief JSON Library Design

lexicon.txt

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ keylength
6464
len
6565
longjmp
6666
mainpage
67+
md
6768
microcontrollers
6869
min
6970
misra

manifest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name : "coreJSON"
2-
version: "v3.0.1"
2+
version: "v3.0.2"
33
description: |
44
"A parser strictly enforcing the ECMA-404 JSON standard, suitable for microcontrollers. \n"
55
license: "MIT"

source/core_json.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

source/include/core_json.h

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -31,6 +31,12 @@
3131
#include <stdbool.h>
3232
#include <stddef.h>
3333

34+
/* *INDENT-OFF* */
35+
#ifdef __cplusplus
36+
extern "C" {
37+
#endif
38+
/* *INDENT-ON* */
39+
3440
/**
3541
* @ingroup json_enum_types
3642
* @brief Return codes from coreJSON library functions.
@@ -321,4 +327,11 @@ JSONStatus_t JSON_Iterate( const char * buf,
321327
size_t * next,
322328
JSONPair_t * outPair );
323329
/* @[declare_json_iterate] */
330+
331+
/* *INDENT-OFF* */
332+
#ifdef __cplusplus
333+
}
334+
#endif
335+
/* *INDENT-ON* */
336+
324337
#endif /* ifndef CORE_JSON_H_ */

test/cbmc/include/core_json_annex.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/include/skipGeneric.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/JSON_Iterate/JSON_Iterate_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/JSON_Search/JSON_Search_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/JSON_Validate/JSON_Validate_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipAnyLiteral/skipAnyLiteral_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipCollection/skipCollection_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipEscape/skipEscape_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipNumber/skipNumber_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipSpace/skipSpace_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipSpaceAndComma/skipSpaceAndComma_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipString/skipString_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/proofs/skipUTF8/skipUTF8_harness.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipAnyLiteral.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipAnyScalar.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipCollection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipEscape.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipGeneric.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipNumber.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipSpace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipSpaceAndComma.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipString.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/cbmc/stubs/skipUTF8.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

test/unit-test/core_json_utest.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* coreJSON v3.0.1
2+
* coreJSON v3.0.2
33
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

0 commit comments

Comments
 (0)