Moving include files into a sensible subdirectory.
This commit is contained in:
parent
262a68ba8f
commit
94ea7cefb0
4
Makefile
4
Makefile
|
@ -10,9 +10,9 @@ CXXFLAGS = -std=c++11 -O2 -march=native -Wall -Wextra -Wshadow -Iinclude -Iben
|
|||
LIBFLAGS = -ldouble-conversion
|
||||
|
||||
EXECUTABLES=parse jsoncheck minifiercompetition parsingcompetition
|
||||
HEADERS=include/jsonparser.h include/common_defs.h include/jsonioutil.h benchmark/benchmark.h benchmark/linux/linux-perf-events.h include/simdjson_internal.h include/stage1_find_marks.h include/stage2_flatten.h include/stage3_ape_machine.h include/stage4_shovel_machine.h
|
||||
HEADERS=include/jsonparser/jsonparser.h include/jsonparser/common_defs.h include/jsonparser/jsonioutil.h benchmark/benchmark.h benchmark/linux/linux-perf-events.h include/jsonparser/simdjson_internal.h include/jsonparser/stage1_find_marks.h include/jsonparser/stage2_flatten.h include/jsonparser/stage3_ape_machine.h include/jsonparser/stage4_shovel_machine.h
|
||||
LIBFILES=src/jsonioutil.cpp src/jsonparser.cpp src/stage1_find_marks.cpp src/stage2_flatten.cpp src/stage3_ape_machine.cpp src/stage4_shovel_machine.cpp
|
||||
MINIFIERHEADERS=include/jsonminifier.h include/simdprune_tables.h
|
||||
MINIFIERHEADERS=include/jsonparser/jsonminifier.h include/jsonparser/simdprune_tables.h
|
||||
MINIFIERLIBFILES=src/jsonminifier.cpp
|
||||
|
||||
EXTRA_EXECUTABLES=parsenocheesy parsenodep8
|
||||
|
|
|
@ -1,24 +1,15 @@
|
|||
//#include "avxprocessing.h"
|
||||
|
||||
//#include "avxminifier.h"
|
||||
//#include "scalarminifier.h"
|
||||
#include <iostream>
|
||||
|
||||
#include "benchmark.h"
|
||||
#include "jsonioutil.h"
|
||||
#include "jsonminifier.h"
|
||||
#include "jsonparser/jsonioutil.h"
|
||||
#include "jsonparser/jsonminifier.h"
|
||||
|
||||
#include "jsonminifier.h"
|
||||
//#include "jsonstruct.h"
|
||||
// #define RAPIDJSON_SSE2 // bad
|
||||
// #define RAPIDJSON_SSE42 // bad
|
||||
#include "rapidjson/document.h"
|
||||
#include "rapidjson/reader.h" // you have to check in the submodule
|
||||
#include "rapidjson/stringbuffer.h"
|
||||
#include "rapidjson/writer.h"
|
||||
//#include "util.h"
|
||||
|
||||
// colorfuldisplay(ParsedJson & pj, const u8 * buf)
|
||||
|
||||
using namespace rapidjson;
|
||||
using namespace std;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "common_defs.h"
|
||||
#include "jsonparser/common_defs.h"
|
||||
#include "double-conversion/double-conversion.h"
|
||||
#include "linux-perf-events.h"
|
||||
#include <algorithm>
|
||||
|
@ -33,12 +33,12 @@ using namespace double_conversion;
|
|||
|
||||
//#define DEBUG
|
||||
|
||||
#include "jsonioutil.h"
|
||||
#include "simdjson_internal.h"
|
||||
#include "stage1_find_marks.h"
|
||||
#include "stage2_flatten.h"
|
||||
#include "stage3_ape_machine.h"
|
||||
#include "stage4_shovel_machine.h"
|
||||
#include "jsonparser/jsonioutil.h"
|
||||
#include "jsonparser/simdjson_internal.h"
|
||||
#include "jsonparser/stage1_find_marks.h"
|
||||
#include "jsonparser/stage2_flatten.h"
|
||||
#include "jsonparser/stage3_ape_machine.h"
|
||||
#include "jsonparser/stage4_shovel_machine.h"
|
||||
using namespace std;
|
||||
|
||||
// https://stackoverflow.com/questions/2616906/how-do-i-output-coloured-text-to-a-linux-terminal
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
#include "jsonparser.h"
|
||||
#include "jsonparser/jsonparser.h"
|
||||
|
||||
#include "benchmark.h"
|
||||
//#include "jsonstruct.h"
|
||||
|
||||
// #define RAPIDJSON_SSE2 // bad
|
||||
// #define RAPIDJSON_SSE42 // bad
|
||||
#include "rapidjson/document.h"
|
||||
|
@ -10,7 +10,6 @@
|
|||
#include "rapidjson/stringbuffer.h"
|
||||
#include "rapidjson/writer.h"
|
||||
|
||||
// colorfuldisplay(ParsedJson & pj, const u8 * buf)
|
||||
|
||||
using namespace rapidjson;
|
||||
using namespace std;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
all:../../include/transitions.h
|
||||
|
||||
../../include/transitions.h: generatetransitions
|
||||
./generatetransitions > ../../include/transitions.h
|
||||
./generatetransitions > ../../include/jsonparser/transitions.h
|
||||
|
||||
generatetransitions: generatetransitions.cpp
|
||||
$(CXX) -o generatetransitions generatetransitions.cpp -I../../include
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "jsonioutil.h"
|
||||
#include "jsonparser/jsonioutil.h"
|
||||
#include <cstring>
|
||||
std::pair<u8 *, size_t> get_corpus(std::string filename) {
|
||||
std::ifstream is(filename, std::ios::binary);
|
||||
|
|
|
@ -67,7 +67,7 @@ size_t jsonminify(const unsigned char *bytes, size_t howmany,
|
|||
#include <x86intrin.h>
|
||||
#endif // _MSC_VER
|
||||
|
||||
#include "simdprune_tables.h"
|
||||
#include "jsonparser/simdprune_tables.h"
|
||||
#include <cstring>
|
||||
#ifndef __clang__
|
||||
static inline __m256i _mm256_loadu2_m128i(__m128i const *__addr_hi,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "jsonparser.h"
|
||||
#include "jsonparser/jsonparser.h"
|
||||
|
||||
// allocate a ParsedJson structure that can support document
|
||||
// up to len bytes.
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
#include <cassert>
|
||||
|
||||
#include "common_defs.h"
|
||||
#include "simdjson_internal.h"
|
||||
#include "jsonparser/common_defs.h"
|
||||
#include "jsonparser/simdjson_internal.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
#include <cassert>
|
||||
|
||||
#include "common_defs.h"
|
||||
#include "simdjson_internal.h"
|
||||
#include "jsonparser/common_defs.h"
|
||||
#include "jsonparser/simdjson_internal.h"
|
||||
|
||||
#ifndef NO_PDEP_WIDTH
|
||||
#define NO_PDEP_WIDTH 8
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
||||
#include "common_defs.h"
|
||||
#include "simdjson_internal.h"
|
||||
#include "jsonparser/common_defs.h"
|
||||
#include "jsonparser/simdjson_internal.h"
|
||||
|
||||
// the ape machine consists of two parts:
|
||||
//
|
||||
|
@ -111,7 +111,7 @@ const u32 MAX_STATES = 16;
|
|||
* Better to precompute the (small) result into a header file.
|
||||
*/
|
||||
// u32 trans[MAX_STATES][256];
|
||||
#include "transitions.h"
|
||||
#include "jsonparser/transitions.h"
|
||||
|
||||
u32 states[MAX_DEPTH];
|
||||
const int START_STATE = 1;
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
||||
#include "common_defs.h"
|
||||
#include "simdjson_internal.h"
|
||||
#include "jsonparser/common_defs.h"
|
||||
#include "jsonparser/simdjson_internal.h"
|
||||
|
||||
// they are { 0x7b } 0x7d : 0x3a [ 0x5b ] 0x5d , 0x2c
|
||||
// these go into the first 3 buckets of the comparison (1/2/4)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "jsonparser.h"
|
||||
#include "jsonparser/jsonparser.h"
|
||||
|
||||
/**
|
||||
* Does the file filename ends with the given extension.
|
||||
|
|
Loading…
Reference in New Issue