Skip to content

Commit

Permalink
Release cleanup (#104)
Browse files Browse the repository at this point in the history
Updates version numbers, README.md documentation links, and adds C++ guards in core_json.h.
  • Loading branch information
archigup authored Jul 23, 2021
1 parent 9066f2c commit caf540c
Show file tree
Hide file tree
Showing 35 changed files with 64 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ jobs:
uses: FreeRTOS/CI-CD-Github-Actions/memory_statistics@main
with:
config: .github/memory_statistics_config.json
check_against: docs/doxygen/include/size_table.html
check_against: docs/doxygen/include/size_table.md
2 changes: 1 addition & 1 deletion .github/workflows/memory_statistics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: size_table
path: size_table.html
path: size_table.md
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log for coreJSON Library

## v3.0.2 (July 2021)
- [#100](https://github.com/FreeRTOS/coreJSON/pull/100) Fix overflow in skipOneHexEscape().
- [#95](https://github.com/FreeRTOS/coreJSON/pull/95) Eliminate warnings when base char type is unsigned.
- [#93](https://github.com/FreeRTOS/coreJSON/pull/93) Wrap query key separator macro with ifndef.

## v3.0.1 (February 2021)
- [#86](https://github.com/FreeRTOS/coreJSON/pull/86) Fix MISRA 9.1 violation.
- [#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.
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This repository contains the coreJSON library, a parser that strictly enforces t

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/).

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).
See memory requirements for this library [here](./docs/doxygen/include/size_table.md).

**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.**

Expand Down Expand Up @@ -68,7 +68,19 @@ gcc -I source/include example.c source/core_json.c -o example
gcc -I source/include -c source/core_json.c
```

## Generating documentation
## Documentation

### Existing documentation
For pre-generated documentation, please see the documentation linked in the locations below:

| Location |
| :-: |
| [AWS IoT Device SDK for Embedded C](https://github.com/aws/aws-iot-device-sdk-embedded-C#releases-and-documentation) |
| [FreeRTOS.org](https://freertos.org/Documentation/api-ref/coreJSON/docs/doxygen/output/html/index.html) |

Note that the latest included version of the coreJSON library may differ across repositories.

### Generating documentation

The Doxygen references were created using Doxygen version 1.8.20. To generate the
Doxygen pages, please run the following command from the root of this repository:
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen/config.doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "coreJSON"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "v3.0.1"
PROJECT_NUMBER = "v3.0.2"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/doxygen/pages.dox
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and no heap allocation, making it suitable for IoT microcontrollers, but also fu
@section json_memory_requirements Memory Requirements
@brief Memory requirements of the JSON library.

@include{doc} size_table.html
@include{doc} size_table.md

@section json_design Design
@brief JSON Library Design
Expand Down
1 change: 1 addition & 0 deletions lexicon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ keylength
len
longjmp
mainpage
md
microcontrollers
min
misra
Expand Down
2 changes: 1 addition & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name : "coreJSON"
version: "v3.0.1"
version: "v3.0.2"
description: |
"A parser strictly enforcing the ECMA-404 JSON standard, suitable for microcontrollers. \n"
license: "MIT"
2 changes: 1 addition & 1 deletion source/core_json.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
15 changes: 14 additions & 1 deletion source/include/core_json.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down Expand Up @@ -31,6 +31,12 @@
#include <stdbool.h>
#include <stddef.h>

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @ingroup json_enum_types
* @brief Return codes from coreJSON library functions.
Expand Down Expand Up @@ -321,4 +327,11 @@ JSONStatus_t JSON_Iterate( const char * buf,
size_t * next,
JSONPair_t * outPair );
/* @[declare_json_iterate] */

/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */

#endif /* ifndef CORE_JSON_H_ */
2 changes: 1 addition & 1 deletion test/cbmc/include/core_json_annex.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/include/skipGeneric.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/JSON_Iterate/JSON_Iterate_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/JSON_Search/JSON_Search_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/JSON_Validate/JSON_Validate_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipAnyLiteral/skipAnyLiteral_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipCollection/skipCollection_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipEscape/skipEscape_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipNumber/skipNumber_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipSpace/skipSpace_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipString/skipString_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/proofs/skipUTF8/skipUTF8_harness.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipAnyLiteral.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipAnyScalar.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipCollection.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipEscape.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipGeneric.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipNumber.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipSpace.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipSpaceAndComma.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipString.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/cbmc/stubs/skipUTF8.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion test/unit-test/core_json_utest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* coreJSON v3.0.1
* coreJSON v3.0.2
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down

0 comments on commit caf540c

Please sign in to comment.