Cleaning up the single-header demo. (#1731)

* Cleaning up the single-header demo.

* Updating xcode
This commit is contained in:
Daniel Lemire 2021-10-09 11:34:21 -04:00 committed by GitHub
parent d996ffc494
commit 9a32c48098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,7 @@ jobs:
key: ${{ hashFiles('dependencies/CMakeLists.txt') }}
- name: Use cmake
run: |
xcversion select 11.2.1
xcversion select 11.7
mkdir builddebug &&
cd builddebug &&
cmake -DCMAKE_BUILD_TYPE=Debug -DSIMDJSON_GOOGLE_BENCHMARKS=OFF -DSIMDJSON_DEVELOPER_MODE=ON -DBUILD_SHARED_LIBS=OFF .. &&

View File

@ -7,7 +7,7 @@ int main(int argc, char *argv[]) {
std::cerr << "Please specify at least one file name and" << std::endl;
std::cerr << "up to two files." << std::endl;
std::cerr << "The first file should be a JSON document." << std::endl;
std::cerr << "The secod file should container many JSON documents."
std::cerr << "The second file should container many JSON documents."
<< std::endl;
std::cerr << "Try the test files: jsonexamples/twitter.json "
"jsonexamples/amazon_cellphones.ndjson"
@ -39,7 +39,7 @@ int main(int argc, char *argv[]) {
std::cout << error << std::endl;
return EXIT_FAILURE;
}
std::cout << "document has the following type at the root: " << type
std::cout << "if valid, the document has the following type at the root: " << type
<< std::endl;
if (argc == 2) {
@ -73,8 +73,9 @@ int main(int argc, char *argv[]) {
std::cout << error << std::endl;
return EXIT_FAILURE;
} else {
std::cout << "iterate_many valid" << std::endl;
std::cout << "found " << counter << " documents" << std::endl;
std::cout << "I found " << counter << " potential JSON documents." << std::endl;
}
std::cout << "For more information on how simdjson works, please refer to our documentation." << std::endl;
std::cout << "https://github.com/simdjson/simdjson/blob/master/doc/basics.md" << std::endl;
return EXIT_SUCCESS;
}