Disallow including headers from implementation files

This commit is contained in:
John Keiser
2023-07-20 10:01:22 -07:00
parent 4dec6ed5a7
commit bb54946b78
93 changed files with 5775 additions and 29057 deletions
+8 -4
View File
@@ -1,6 +1,10 @@
#ifndef SIMDJSON_SRC_PPC64_CPP
#define SIMDJSON_SRC_PPC64_CPP
#ifndef SIMDJSON_AMALGAMATED
#include "base.h"
#endif // SIMDJSON_AMALGAMATED
#include "simdjson/ppc64.h"
#include "simdjson/ppc64/implementation.h"
@@ -13,7 +17,7 @@
// Stage 1
//
namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace ppc64 {
simdjson_warn_unused error_code implementation::create_dom_parser_implementation(
size_t capacity,
@@ -82,7 +86,7 @@ simdjson_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2,
}
} // unnamed namespace
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace ppc64
} // namespace simdjson
//
@@ -93,7 +97,7 @@ simdjson_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2,
// Implementation-specific overrides
//
namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace ppc64 {
namespace {
namespace stage1 {
@@ -143,7 +147,7 @@ simdjson_warn_unused error_code dom_parser_implementation::parse(const uint8_t *
return stage2(_doc);
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace ppc64
} // namespace simdjson
#include "simdjson/ppc64/end.h"