Fix patch to use "git am" #5

Closed
shaba wants to merge 117 commits from (deleted):master into master
First-time contributor
No description provided.
shaba added 117 commits 2021-07-11 21:04:02 +03:00
bits to be removed and needs a Makefile.
- Add LICENSE.txt
- Add a comment about how we handle numbers
- Add more test code
- Fix a narrowing-conversion issue
- Fix a comment typo
Add const to comparisons
Use static_cast instead of reinterpret_cast for hierarchy navigation.
Use string::compare to improve performance.
iterate over pair of const string and Json
warning about.  I've added static_cast<char> to silence the warning and
express the intent.
For extra safety, add an explicit bounds check in utf8 parsing.
In JSON the float point special values NaN and Infinity should serialised to 'null'.
Previously, 'snprintf' in 'dump' was giving a string that isn't compliant to the JSON standard.
When dumping non-finite floating point values, output 'null'.
Add clean rule to Makefile.
This uses cmake to allow building as a static library and to build the tests

To use `cmake`

```
$ mkdir build
$ cd build
$ cmake ..
 .
 .
-- Build files have been written to: ~/json11/build
$ make
Scanning dependencies of target json11
[ 20%] Building CXX object CMakeFiles/json11.dir/json11.cpp.o
[ 40%] Linking CXX static library libjson11.a
[ 40%] Built target json11
Scanning dependencies of target json11_test
[ 60%] Building CXX object CMakeFiles/json11_test.dir/json11.cpp.o
[ 80%] Building CXX object CMakeFiles/json11_test.dir/test.cpp.o
[100%] Linking CXX executable json11_test
[100%] Built target json11_test
$ make test
running tests...
Test project /Users/paul/dev/json11/build
    Start 1: json11_test
    1/1 Test #1: json11_test ......................   Passed    0.00 sec

    100% tests passed, 0 tests failed out of 1

    Total Test time (real) =   0.01 sec
$
```
Handles end of file correctly
Fixes bug in parse_from_stdin
Add cmake support
new routine that consumes whitespaces and comments.
activated by JSON11_COMMENTS pre-processor flag.
test also for nested and mixed comments.
whitespaces/newlines are already intermixed between comments.
add 3 testes for:
- unended multi-line comment,
- malformed single-line comment,
- trailing slash
Detect and ignore comments
This fixes a “No previous prototype for function” warning.
Update CMakeLists to 3.x style
...to the CMake build script. The pkg-config file needs a version number (which
it takes from the CMakeLists.txt variable), which I've set to 1.0.0. The cmake
project declaration needs to be after the minimum-requirement declaration to
avoid errors from the cmake's change in VERSION semantics.
Generate pkg-config File & Add Install Target
Update: add more tests + use parser.failed
make JsonParser invisible from outside
Parse half ready json
Don't assume in-tree builds when installing json11.pc
MSVS 2013 compatibility changes.
Add option to disable unit tests
[MSVC 14] int to bool conversion performance warning
Allow json11 tests to be customized with pre-processor defines
Use CXX_STANDARD to specify c++11 compile flags
- Initial build.
- 0.6.2
# Conflicts:
#	src/CMakeLists.txt
- 0.6.3
- 0.6.4
# Conflicts:
#	src/CMakeLists.txt
- build master snapshot 30bb602681
- package client header to devel package
- merge blk and client devel packages
- 0.6.5
shaba closed this pull request 2021-07-11 21:05:26 +03:00
Author
First-time contributor

Please ignore this PR.

Please ignore this PR.

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vitalif/vitastor#5
No description provided.