dynamic compression: add HS_CDECL to implementation

This commit is contained in:
Alex Coyte 2017-08-07 13:50:21 +10:00 committed by Matthew Barr
parent 37033ef9bb
commit 15784954e8

View File

@ -1096,7 +1096,7 @@ hs_error_t HS_CDECL hs_scan_vector(const hs_database_t *db,
} }
HS_PUBLIC_API HS_PUBLIC_API
hs_error_t hs_compress_stream(const hs_stream_t *stream, char *buf, hs_error_t HS_CDECL hs_compress_stream(const hs_stream_t *stream, char *buf,
size_t buf_space, size_t *used_space) { size_t buf_space, size_t *used_space) {
if (unlikely(!stream || !used_space)) { if (unlikely(!stream || !used_space)) {
return HS_INVALID; return HS_INVALID;
@ -1123,7 +1123,8 @@ hs_error_t hs_compress_stream(const hs_stream_t *stream, char *buf,
} }
HS_PUBLIC_API HS_PUBLIC_API
hs_error_t hs_expand_stream(const hs_database_t *db, hs_stream_t **stream, hs_error_t HS_CDECL hs_expand_stream(const hs_database_t *db,
hs_stream_t **stream,
const char *buf, size_t buf_size) { const char *buf, size_t buf_size) {
if (unlikely(!stream || !buf)) { if (unlikely(!stream || !buf)) {
return HS_INVALID; return HS_INVALID;
@ -1162,7 +1163,7 @@ hs_error_t hs_expand_stream(const hs_database_t *db, hs_stream_t **stream,
} }
HS_PUBLIC_API HS_PUBLIC_API
hs_error_t hs_reset_and_expand_stream(hs_stream_t *to_stream, hs_error_t HS_CDECL hs_reset_and_expand_stream(hs_stream_t *to_stream,
const char *buf, size_t buf_size, const char *buf, size_t buf_size,
hs_scratch_t *scratch, hs_scratch_t *scratch,
match_event_handler onEvent, match_event_handler onEvent,