mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
e370a65383
* Improving portability. * Revisiting faulty logic regarding same-page overruns. * Disabling same-page overruns under VS. * Clarifying the documentation * Fix for issue 131 + being more explicit regarding memory realloc. * Fix for issue 137. * removing "using namespace std" throughout. Fix for 50 * Introducing typed malloc/free. * Introducing a custom class (padded_string) that solves several minor usability issues. * Updating amalgamation for testing.
18 lines
452 B
C++
18 lines
452 B
C++
/* auto-generated on Thu May 9 17:40:56 EDT 2019. Do not edit! */
|
|
|
|
#include <iostream>
|
|
#include "simdjson.h"
|
|
#include "simdjson.cpp"
|
|
int main(int argc, char *argv[]) {
|
|
const char * filename = argv[1];
|
|
padded_string p = get_corpus(filename);
|
|
ParsedJson pj = build_parsed_json(p); // do the parsing
|
|
if( ! pj.isValid() ) {
|
|
std::cout << "not valid" << std::endl;
|
|
} else {
|
|
std::cout << "valid" << std::endl;
|
|
}
|
|
return EXIT_SUCCESS;
|
|
}
|
|
|