Skip to content

Commit

Permalink
Moved .inl test symbols into source file, fixes downstream swift build (
Browse files Browse the repository at this point in the history
#46)

* Moved .inl test symbols into source file, fixes downstream swift build

* Fixed use of testing API

* Fixed shared-lib build
  • Loading branch information
Justin Boswell committed Jun 9, 2021
1 parent 25cd413 commit 71ef50d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/aws/testing/compression/huffman.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ struct huffman_test_code_point {
* \return AWS_OP_SUCCESS on success, AWS_OP_FAILURE on failure (error_string
* will be set)
*/
AWS_COMPRESSION_API
int huffman_test_transitive(
struct aws_huffman_symbol_coder *coder,
const char *input,
Expand All @@ -90,6 +91,7 @@ int huffman_test_transitive(
* \return AWS_OP_SUCCESS on success, AWS_OP_FAILURE on failure (error_string
* will be set)
*/
AWS_COMPRESSION_API
int huffman_test_transitive_chunked(
struct aws_huffman_symbol_coder *coder,
const char *input,
Expand All @@ -98,6 +100,6 @@ int huffman_test_transitive_chunked(
size_t output_chunk_size,
const char **error_string);

#include <aws/testing/compression/huffman.inl>
/*#include <aws/testing/compression/huffman.inl>*/

#endif /* AWS_TESTING_COMPRESSION_HUFFMAN_H */
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
/**
* See aws/testing/compression/huffman.h for docs.
*/
#define AWS_UNSTABLE_TESTING_API
#include <aws/testing/compression/huffman.h>

#include <aws/common/common.h>
#include <aws/common/byte_buf.h>
#include <aws/common/common.h>

int huffman_test_transitive(
struct aws_huffman_symbol_coder *coder,
Expand Down

0 comments on commit 71ef50d

Please sign in to comment.