mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Disallow including headers from implementation files
This commit is contained in:
+8
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user